It is the same for humans and dogs to find a comfortable place.
For the dog, the owner’s person sometimes becomes a pillow!
Excuse me human but you’re on my pillow from r/aww
“Excuse me human, you are my pillow.”
“I came here to find my pillow.Let’s sleep here.”
“well… I am not very comfortable.”
“Let’s sleep with your face.”