The market is not efficient. A software developer being paid $100k doesn't mean they're providing the world with $100k of value. it just means they convinced management/HR to pay them $100k for turning up 250/365 days.
I suggest checking out "bullshit jobs" by David Graeber :)