Honestly, if it seems like people no longer appreciate an interaction that you deem healthy, you should ask yourself if people have always received it as a kindness, or just as something they needed to tolerate.
You gotta know your audience. Why should people appreciate an unwarranted compliment from you if they already don't want to talk to you? It's not doing them any favors.
Also not to be a dick, but if you're getting older, chances are young women are gonna find unwarranted compliments creepy unless they're already putting vibes your way. The world is not missing out when old dudes stop doing that