The reason you may be experiencing this effect is that some people, such as me, absolutely loathe being praised or complimented - it’s incredibly uncomfortable, for a number of reasons:
1) What Do You Want? More often than not, people have an ulterior motive when giving a compliment. You’re telling me you like my shirt, or that what I did last week was kind, and I’m wondering what sort of onerous task or bequest you’re about to request of me. It’s usually a “loan” (donation) that folks are after, and if not it’s “can you come and fix my technology” or “can you build me a website” or “my drains are blocked and I have a fear of plumbers”.
2) The Punchline. A compliment is often a prelude to a criticism, following the classic shit-sandwich school of management. “You’re the most intelligent person I’ve ever met .... and I’m going to have to ask you to leave the company” “I like your shirt ... but you need to do something about your face”. If someone close to me starts complimenting me I just tune out until the criticism bit, as the compliments are just so much hot air, and I’d sooner not hear happy falsehoods.
3) Platitudes. Most folks don’t mean the compliments they say - they just fill the air with noise because they find silence uncomfortable. You happened to be nearby, and they won’t remember that they complimented you yesterday, and will let you overhear them giving the same compliment to 20 other people.
So, in short, people issue compliments because they a) want something, b) want to criticise you without them feeling bad about it or c) because it’s habit and they don’t mean it.
So - complimenting people is a poor strategy for life - it just makes people guarded, and ultimately avoid you because you’re giving so many compliments you must want them to do something really unpleasant.
It’s a shame that this is how it is, but it is.