We humans have likely subjected both cats and dogs to similar selection.

However, cats appear much more independent (or “selfish” in view of humans, being selfish ourselves) than dogs.

Evolution-wise, dogs (and their ancestors, wolves) are a gregarious species.