Just speculation but I imagine there was already symbiosis between humans and wolves long before people treated dogs as pets, livestock, or property. Semi wild dogs eating our food waste will also keep down rat and other pest populations and bark if potentially dangerous strangers suddenly show up. Win win, so no reason for us to drive them off, or for them to leave. I’ve seen this relationship in modern times in small rural muslim communities where people do not interact with the dogs for religious reasons, but are willing to let them live around their homes.
I don't contend with your view at all, and agree completely. I've spent lots of time in the Middle East and know exactly what you're speaking of. I actually happened upon this article the other day, whicj I found interesting regarding early symbiosis[1]. I'm not a biologist, so I can't speak to the subject a whole lot.