That's what made dogs perfect as pets.
Our ancestors noticed these animals that would follow us around in packs. They could generally keep up with us, form bonds easily, were pretty good at killing, and mostly ate the parts of the animals we didn't.
We just chose the ones who were coolest with us and just bred the ones who loved us the most.