And in the next sentence you're questioning why CEOs get paid so much. A good CEO or CFO or CMO can generate value for the company at a scale that's much much larger than what a single programmer does.
During Satya Nadella's reign as the CEO, Microsoft went from people speculating its impending demise to a trillion dollar company. Don't you think he deserves a billion from that $700bn rise in market cap?
TSLA stock will tank the moment Elon Musk decides to step down? In a cynical world, maybe he's just a figurehead and there are others running the show behind the scene, but creating such persona is still something that a CEO has to do.
This is the same old Tesla vs Edison discussion. It's a common misconception among people that it's enough to be a genius lone worker to be able to provide value to a company.