In a capitalist economy, high pay doesn't equal challenging / hard work or even valuable work. If you exist where the money is being funneled, you will get paid a lot even if you barely contribute.
Capitalism is a relatively recent invention with a narrower definition that what most people think.
In any case, wealth and power distribution is highly related to network effects. Regardless of skills, being a servant of kings will give you more wealth and power than being a free individual in the desert.
I don't think that's a capitalist thing to say, it just seems to be in the nature of game theory. Building something technically difficult doesn't really have any bearing on how much value can be demanded in return.