basically if you aren't in management or ownership, you are the bottom of the totem pole. this is by definition. if you look at an organization chart - who's on the bottom?
Also, let's ignore all the people in the world who don't even work at large, prestigious, and highly profitable companies in the first place. They don't matter and aren't to be considered even part of society.
You are thinking inside of a bubble and ignoring everything outside it. You're constructing a highly exclusive slice of society with developers at the bottom, million-dollar attorneys in the middle, and rock-star CEOs and billionaires at the top. There exist thousands of towns and small cities, each with many, many thousands of people, where 95% of jobs are worse than almost any given programming job in a larger city and very significantly worse than a programming job at, say, Google or Facebook.