It's no different to me turning over a couple of times, scratching my ar*e, fiddling with my nuts, & settling down with my kn*b nestled up against my wifes b*m.
Before dogs and cats became domesticated, they would turn round a couple of times before lying down to make sure that there were no snakes in the grass where they were going to sleep.