Dogs were probably domesticated by accident, when wolves began trailing ancient hunter-gatherers to snack on their garbage. Docile wolves may have been slipped extra food scraps, the theory goes, so they survived better, and passed on their genes. Eventually, these friendly wolves evolved into dogs.