Evolution in action.
Cats are solitary hunters who "domesticated themselves" by which we mean they followed early human communities around because humans drove off larger predators and our garbage attracted rodents. Cats weren't so much seeking community with humans (their natural interest in community is limited, not non-existent) as humans created an environment that was easier for cats to survive and thrive in and they adapted to that environment by cozying up to us and emotionally manipulating us.
As an anthropological aside, there's a Zulu creation myth that First Cat saved First Man from becoming giant food, in return for a verbal contract that First Man's descendants would take care of First Cat's descendants into perpetuity, that included very specific terms like "the warmest spot by the fire" "choice morsels" and "scritches".
Dogs on the other hand are pack hunters. Their survival (and psychology) is based around community. Dog brains have highly evolved circuitry for navigating community and learning its rules. They are able to read human emotion much better than cats can (though cats definitely can). As a survival strategy, dogs leaned into developing community with humans more than wolves did and we have measured this.
Basically the tl;dr: is that dogs are naturally cooperative and grew brain circuitry for creating community with humans whereas cats are naturally self sufficient, saw an opportunity to exploit us and jumped on that shit. Both species took a different path to "befriending humans" which is a highly effective survival strategy for every animal species that tried it.