You care a little too much. You expect more than you should. It’s a given that (almost) everything that is too much is bad for us but since we are hard headed, we still do what’s not good for us.
Maybe you’re just too sensitive.
You have to fully understand that each and every person in this world is unique and as one soul, no matter how hard you try, it’s impossible for everybody to like you. That’s totally okay. You do not live to please us, to please the people around you. So long as you don’t do anything wrong with them and in your daily life, you’re not hurting them (intentionally), you’re okay.
If you are used to the feeling that people like your personality, and you are very optimistic about life, it will be a little difficult for you to accept that someday you will meet a person that you totally do no wrong but still hates you. Also, keep in mind that there will be people who will be nice to your face for some reason but soon as you turn your back, release all the grudges they have for you.
As what Taylor Swift’s song says “Shake it off! Shake it off!” Just shoo shoo the negative vibes, you don’t need the affirmation of everyone in order for you to live a happy life.
If you knew the reason why they don’t like you and you want to change your attitude, great. It’s all up to you. Just remember, nobody’s forcing you to change (change for the better and for yourself).