Cats are assholes and do what they want, and we're never bred to be companions until very recently and thus are shit at forming actual bonds since they aren't genetically good for it, and the only job they serve is pest control.
Dogs will love you inerrantly even if you're having a bad day, have been bred selectively by humans for at least 30,000 years and thus are more in tune to humans than some humans are because they're genetically good for it, they can provide superior companionship among plenty of other jobs including, but not limited to:
Police work
Pulling sleds in winter weather
Hunting
Search and rescue
Locating drugs
Assisting blind people
Dogs are objectively superior to cats in literally every way.