The more someone is like you, the more it stings
People have no ready-made ruler for measuring how well they're doing, and the handiest ruler is the people around them who are like them. That's why a colleague's promotion hurts more than a stranger buying a yacht. You and your colleague have similar experience and want to prove the same abilities, so when he gets promoted, you start weighing whether you're not as good as him. The further someone is from you, the less you use them as a ruler, and the less it stings.
The gap cancels out part of your own gain at a set rate
Suppose every 1 yuan the gap widens feels as bad as earning 0.5 yuan less. You and a colleague get raises at the same time: yours is 2,000 and his is 5,000. The gap widens by 3,000, the bad feeling cancels out 1,500, and you net only 500. If his raise is 6,000, the gap widens by 4,000, the bad feeling cancels out 2,000, and your raise is exactly wiped out. If his raise is 8,000, the gap widens by 6,000, the bad feeling cancels out 3,000, and your raise turns into a net loss of 1,000.
This rate differs from person to person; for some it's 0.1, for others it's higher. The higher the rate, the more a gap hurts, and the more likely a person is to choose "everyone gets less," like the half in the survey.
There are two ways to close a gap: one takes effort, the other drags you down too
When people feel they can catch up and the other person deserves the position, they learn how that person does things and go after the same chances. When they feel they can't catch up and are sure the other person doesn't deserve it, they undermine them. Say you hold back material the other person urgently needs. His project does slow down, but your working relationship with him is ruined too. The gap is smaller, but you're worse off.
It's most useful when someone who joined at the same time as you and was going for the same position gets promoted first. When you admire someone far away at the top of your field and only want to learn their skills, there may be no sting, and it doesn't apply. If someone really has taken what you were owed, that's not envy but a question of interests. If someone took credit for your work, ask for it to be corrected; if the promotion criteria favor people with connections, ask for them to be made public. Write off someone who's been wronged as "just jealous," and their fair claim gets talked away.