[flagged]
It's a voluntary transaction, there's nothing unfair about it.
People who are not in tech are also shocked to hear about developers salaries. And yet, there's nothing wrong with it, it just means shareholders can (on average and with a certain degree of risk) extract more than that value out of CEOs or engineers. If this wasn't true those companies won't be profitable (if we exclude market distorting forces like government bailouts or regulations that help top companies to maintain their edge).
There's an argument to be made that companies could afford to pay less for these roles and have the same performance - that may very well be true. But this doesn't make it unfair; simply put, the customers (the shareholders) are pooling their money and deciding to shoot for the best of the best by offering the best compensation.