Dogs are pack animals, and this behavior is rooted in their genes. Even if dogs have never lived in the wild, they can still exhibit their canine instincts.
PC: Eva Gronblad
They lay on your feet to protect you from danger and put themselves in harm’s way. If there’s no danger around, your dog will still lay near the feet with the intention of protecting the alpha.
Putting behavioral instincts aside, your dog might sit on your feet only because they adore and admire you.
Dogs become intertwined with their owners over time as their connection fosters. Dogs exhibit a secure base effect where they follow their owner, just like a baby would cling to their mother.
There are certain situations when your dog might feel like sitting by your feet or on them because they sense fear or are anxious.