> The market judges everyone’s skills, and barring nepotism, the market will pay everyone what they are worth, which is sadly not much for a lot of people.
false in the general case, you're basically invoking a just world hypothesis without actual proof for it.
For a counter example, please see slavery - slaves were not paid anything, despite obviously producing something of worth. Furthermore, there was no difference in the salaries between slaves, despite there presumably being differences in output.
For another counter example, you can look into the variation in programmer salaries based on country, or more generally location. The same job will pay anywhere from $180k in SF to $8k in India, due to differences in cost of living, which have a priori zero effect on programmer 'worth', which I presume would be how good the programmer is at writing code and delivering business value.
It is true that at a certain point, 'real skills' matter - eventually, if you're working as a software engineer, you need to write code. However, it is false to assume there is anything besides a maybe a very mild correlation, if any, in the salaries of software engineers and their ability. You can have a Polish dev with 15 years of experience making less than a new grad in California, and that has nothing to do with skill, but everything to do with regional differences in salary.