The market mostly sets the wages. Pay too low, and you'll be unable to hire anyone. There's also an upper bounds on what one person is worth. It can be a lot, and the difference in productivity between average and superstar programmers is well noted. But even a highly productive programmer has a limited value as an individual member of a team.
Executives get promoted because they've proven to be able to get groups of people to work together to achieve something. Most programmers don't want to or can't do that. Our trade is mostly one of individual contributions, often as part of a team but generally we're not responsible for more than our own tasks, and we're generally not blamed when one of our peers can't keep up.