Cats communicate through smells, many of which are very subtle.
A domestic fluffy creature strives to leave its scent on its owner and receive part of his scent.
Cats become attached to the person who cares for them, and when this happens, they see him as one of their family members.
They love and trust their person and show them this trust by being around them.
By purring they prove their love and tenderness when they are happy next to a person.
In this way they send signals of devotion and love to people.
So, in essence, if a cat rubs its head or lies next to its owner, it is showing him its good attitude.
A cat may also purr and rub its head when asking for something, perhaps food or a treat.
Cats also rub their heads when they are transferring their scent, marking a person as their property.
This cat gesture can be considered a manifestation of affection for their loved ones and gratitude for something.