In the canine world, dogs follow each other around for protection and companionship. So, your pup considers you a member of the pack and will keep an eye for you while you do your business. The dog may lay at your fit in the bathroom as a sign of affection.