Most dog breeds or their ancestors were mutiple purpose use, even the hunting breeds. They guarded the home and it contents. Their barking, a behavior much more developed in most dogs relative to their wild grey wolf ancestors, is very likely selected as a method to enhance alarm function of dog. The dog being largely considered generally as a threat to livestock is a relatively recent event as more people confine dogs away from livestock preventing the socialization that prevents dogs from being a predator on livestock.
Dogs are predators that retain capacity / inclination to drive off or even attempt to kill rival predators of same or different species. It has served well with their guarding use.
Dogs are predators that retain capacity / inclination to drive off or even attempt to kill rival predators of same or different species. It has served well with their guarding use.