Wolves are predators. Cats not regular diet but predators hunt what is available.
Archeological evidence shows cats essentially domesticated themselves. When humans began semi settled communities, that meant food storage, which meant rodents. Also garbage dumps for bones and other scraps. Cats were given access to a rich food source. The wild cats who ventured among a strange species self selected as most adaptable individuals.
Cats are unusual in that most predators hunt until their stomachs are full, then stop, but cats continue killing prey even when no longer hungry. This is why they are so valuable for rodent control, and conversely, so destructive to birds.