For argument's sake, let's say you're paid $80K per year. On the one hand, you may think that is high (it always depends what your frame of reference is). If the code you produce directly makes the company millions of dollars though, does that change your assessment of the 'reasonableness' of that salary?
This is the argument I've heard as to why sports stars get paid so much (because you have to look at what they get paid vs the amount of money they're making for the comapnies paying them).
It's a real can of worms.