Dogs often turn around several times in a circle before lying down.
They appear to be trying to make themselves comfortable, though it has been facetiously suggested that “they are looking for the head of the bed.”
The fact is that dogs have maintained this habit from their origins in the wild.
Like their ancestors and cousins, such as wolves, coyotes, and foxes, domesticated dogs still turn circles to beat down a bed of tall grass.