Why do dogs guard naturally?

Many dogs seem to want to guard their humans especially at home. Why? There is a theory out there. Humans do provide food, a home and an overall sense of security. A dog could find us not well-equipped to protect us against potential intruders. We humans don’t see movement as well and to a dog, we are both nose blind and deaf. They see us as providers of resources and that needs to be protected.