this is probably due to their animal instinct and Pack mentality
Explanation:
See your dog sees you as 'partofthepack'and desires to be by your side , <em>it</em><em> </em>may follow you around even to the bathroom to protectyou;<em>(</em><em>a</em><em> </em><em>member</em><em> </em><em>of</em><em> </em><em>the</em><em> </em><em>pack')</em>