When I was a kid and went to a new school, I was the best in class at math. Mathematical ability is pretty clear cut, so there is no room for "yeah you thought you were awesome, but in reality you were just a know-it-all." I really was that good. :) In that class, there was a girl who used to be best at math before I came. She didn't like that I blew her out of the water when it came to calculating. Though she wasn't very good at math, she was very good at being a kid, forming alliances with the other children and backstabbing. Basically got me frozen out and bullied.
My point is that I think the exact same thing happens on workplaces too, although in veiled form. If you have a gang of C class programmers "lead" by one B class programmer and one A class comes along, tension will likely occur. It has happened to me and I'd be surprised if it hasn't happened to more hackers here on hacker news.