I don't think that domestication happens the way people think it does. I don't think that mostly, it was a case of people getting together, corralling some critters, controlling their breeding and turning them into fluffy pets.
I think that the domestication process is a mutualist thing. Clap your hands at a dog, the dog looks at you. Clap your hands at a wolf, the wolf won't stop running. How does that happen?
How do you domesticate an animal that can kill you easily?
I think that the first part of domestication is voluntary. That the animals find enough benefit to the presence of humans, that they habituate. They get used to hanging about humans. We represent a food source. Dogs found good eating scavenging our leftovers. Cats found lots and lots of mice. Horses and cattle found terrific eating in and around wheat based agriculture. All of this was enough that they could accept the risk of human presence, they learned to watch humans, determine when we were dangerous, and snack up when we aren't around.
There's a whole category of animals - crows, ravens, seagulls, rats, coyotes, raccoons, that are all technically wild, but that live in cities and towns, that inhabit our garages, roam our alleys, and make a very god living off of us. I've come within a few feet of wild raccoons. Not voluntary on the side of either one of us, and we both moved apart. But the point is, that this animal was completely habituated to human presence and environment.
Years ago, I knew some grow farmers - marijuana. They told me that sometimes, Deer would watch them, waiting for them to leave, so that they could move in on the weed field. That' an animal that is exhibiting some very nuanced observation and judgement towards human behaviour and human activities.
That's halfway to what we call domestication.
The difference between a raccoon and a chicken or a pig or a horse, I think, is not that the raccoon is incapable of domestication. It's just that we've never found an ecological or economic niche in our societies that the raccoons could inhabit. Dogs, habituated to our presence and knowledgeable to our ways, turned out to have all kinds of great uses, and we turned out to have all sorts of benefits to them. Cats made great mousers for us, and we made great mouse factories for them.
Domestication is a mutualist process historically. There's a point where domestication is completely human controlled and driven. But this seems to be later in the process.