Answer:
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
Selective breeding, also known as artificial selection, is a process used by humans to develop new organisms with desirable characteristics. Breeders select two parents that have beneficial phenotypic traits to reproduce, yielding offspring with those desired traits.
Hope it helps!