Because cats, chickens, ducks, geese and other animals used to be wild.
So there is no such thing as a master
But it's not the same since someone started raising animals.
Generally speaking, if you have a good relationship, you will recognize your master and even your friends.
On the contrary, a bad relationship not only denies the host, but also may attack or frighten the host.
Now most wild animals don't recognize their owners. They will recognize you if they stay with you for a long time.