Cats have scent glands in their cheeks, chin, and paws. When they rub against you, they are depositing their scent on you, which tells other cats that you are theirs.
Rubbing against you is a way for cats to show their love and affection. It is a way of saying, "I love you" or "I'm happy to see you."
Cats may rub against you when they are excited, such as when you come home from work or when they see their favorite toy.
If your cat is rubbing against you and meowing, they are trying to get your attention. They may want to be petted, played with, or fed.
If your cat is feeling stressed or anxious, they may rub against you to comfort themselves.
Cats may also rub against objects in your home, such as furniture and walls. This is a way of marking their territory and letting other cats know that this is their space.
Pet them and tell them you love them. This will let them know that you are happy to see them and that you appreciate their affection.