Just to expand on that, humans keep dogs not just as pets but as guard animals. It could be imagined that early humans feeding wolves to keep them around might also present a deterrent to aggressors.
Dogs also hunt rodents, they can lead you a dead deer, find a rabbit hole. Dogs chew on skins, bones and eat other parts that humans don't like.