Your mistake is thinking these are substantially different jobs than any other. Don't fall into the Just World fallacy where you try to justify why compensation is so high by assuming there must be some hidden tradeoff. The tech job market just isn't very efficient.