Your dog may feel the need to protect you or guard you.
Dogs may also lay or sit on your feet as a sign of marking their territory to other Dogs.
There are many causes to this behavior.
As stated above, the main reason Your dog shows this behavior is due to naturally instincts related to "pack" behavior.