If your dog follows you everywhere, not just to the bathroom, it could be due to their strong attachment to you or separation anxiety. They may simply enjoy being around you and feel more secure in your presence.