Yeah, but this behaviour is not really bred into cats the way we've bred behaviour into dogs. Cats and humans is more of a mutually beneficial arrangement where we get pest control and they get shelter and a steady food supply.
They kind of just moved in with us several thousand years ago and stuck around because it worked out well for them.