Y does some dogs feel they need to follow there owners every where they go Even to bed?

Some dogs are very protective of their owners and attached to them. This is why some dogs feel they need to follow their owners everywhere they go even to bed.