It's about adaptation. Cats are adaptive creatures, which they can most place. Besides, cats can live alone, and actually, they are not dependent on social connections like a dog. These things give them an advantage in adapting the living with people. Lastly, dogs have had too much genetic manipulation due to artificial insemination over the past years. It happened to cats but was lower than in dogs.