This only happens if the cat owner bothers making a connection with their cat. If all the owner does is feed the cat, the cat is only going to care about the food you give.
I've lived with many cats before. One of the cats I had was a street rescue. When she was pregnant she chose my bed to give birth in, probably because I rescued her and she felt safe with me.