People know when they’re being weird and fickle toward you. They know when their energy isn’t genuine, and they know you have eyes to see right through them — and that awareness is exactly why they avoid you.
Stop being okay with things you really are not okay with. Stop associating being a good person with how much you're willing to suffer in silence. You can be a kind person and still say "I'm not okay with this." Being kind is not about being the human equivalent of a doormat.