As I've said in many other posts, there is really no reason to be treated poorly. It is usually the result of egos too large for themselves and also having been abused as a resident themselves so, "I had to go through it, so should they" mentality.
It makes me sick. I was treated poorly as a resident and refuse to "pass it on". I don't even make the residents that work with me call me "Dr.". I give them a hard time if they DON'T address me by my first name. We are all colleagues, here. The only difference between you and me is experience and time put in so far. That doesn't mean I don't asked to be treated with respect, but imo respect is EARNED. We should all be respected for who we are as people foremost, and then a growing professional admiration is possible. I worked with some brilliant surgeons in residency, but I couldn't stomach being around many of them due to their over inflated egos, and how they talked to me and the staff we worked with.
We go through residency because it is the true stepping stone for the rest of our careers. There is no reason for it to be an unpleasant working environment. It's hard enough already, imo. Not only that, but you make relationships that could span your career and life, good and bad. Wouldn't it be nice if they were all GOOD!
Good luck out there.