Why do people treat me differently when I am with my friend vs when I am alone?

We're new to the university. I met this friend last week during the admission process and since we come from the same place we started hanging out together a lot. When we were together, people were not talking to us, they avoided us. She said it was because we looked like country girls and most kids here are from urban areas. She said it was especially my dressing sense and hairstyle. However we had different classes these days and I noticed that people treat me differently when she's nowhere nearby. They're much nicer and sweeter. She had the exact opposite experience. The person she said was mean to her yesterday, I met them today and they talked to me nicely. Not trying to disrespect her although I sometimes don't like her bossy attitude but what can be the reason? Please, don't find this to be offensive.

Why do people treat me differently when I am with my friend vs when I am alone?
Post Opinion