I could understand getting mad if your pay was lowered, but how are you harmed if the other person's pay is increased?
We make all sorts of incredibly bizarre (from an outside perspective) decisions about who gets paid what; the fact that we've fooled ourselves into thinking that it's because of supply and demand curves may be comforting but is completely unfounded in any data.