I think you have to remember that everyone is going through their own stuff. So what you are seeing as a rejection to you, may be them just doing what they need to do for themselves. Sometimes even just saying thank you can lead to more engagement which isn’t always what that person wants in that moment.
You are a kind person, how others respond doesn’t change that.