My grandmother was wautress for a very old woman who had a cat.
When the old woman died, the cat slept on her and died there.
Actually, the case of the cat is very complex and scientifically fascinating :
Basically, unlike the dog, the cat is a solitary animal so its social behaviour can only be based on its behaviour toward its mother, brothers / sisters, kitties.
So a cat, when dealing with human, will mimic one of those or sometimes a mix of those.
Cats and man relations are around 3000 years : it is a symbiosis relation when agriculture arose :
Cat was eating all sorts of birds / mice / rodents and therefore protecting men's harvest. Men protected and cured cats (from parasites ..).
Then Drawin comes into play : domestic cats started to adapt to men and create relations with men. Some cats have a specific language when they communicate with men, you will notice that they try to reproduce some of our speech (of course with some limits).
This is normal because communicating with men (and gaining men's affection) brings cats an evolutive advantage (especially control and protection of the Kitties)
The difficulty is that you have both wild cats and domestic cats mixed, therefore the natural evolution (Darwin) does not affect them the same way (let alone that the speciy evolution is not fully fixed, unlike dogs) and when you get the cat, it is hard to know whether it is an "evoluted version" or a "wild version" or a mix of both.
Note that dogs mimics with man their usual social behaviour.
Basically, you will have "alpha" dogs, which will try to dominate you and other dogs, which will more easily obey you.
It can be detected, if you lie a (young) dog on its back : if it tries to stand up violently, it is likely you will have an "alpah specimen".