Here’s an interesting story about how cats became domesticated. Apparently it only happened once.
Our current feline companion, Jessica, is less cat-like than many others I’ve known. She’s very affectionate, and even though she has a door, she rarely goes out, and never leaves the yard. She does, though, as the article points out, have the standard feeling of ambiguity about which side of the door she wants to be on.