It appears you not only don't understand the Theory of Evolution but you don't have the slightest grasp of selective breeding either.
For the umpteenth time...
In the ancient past our ancestors began to domesticate wolves. Apparently from the DNA evidence it was specifically grey wolves. By a process of selective breeding (i.e. getting rid of the animals with traits they didn't want and keeping and breeding from those with traits they did want) they began to change the population of wolves they were dealing with.
Over a large number of generations the wolves became less and less wolf like and more and more dog like. Eventually the animals were wolves, not dogs.
All of the modern breeds of dog descend from these populations of domesticated wolves.
I wish I didn't know now what I didn't know then