It may seem mysterious that your cat walks in circles before settling down for a nap – but there's a good reason behind it.