Value in a product is easy to define - it is what the market will pay for the product. Overprice it, and you will be scooped by someone else. Google Docs is free, and can handle MS Word files, yet it still has not won.
Value in a company is also easy to define - it is the value of its shares (market cap).
Value of an employee is easy to define - it is what the employer is willing to pay to keep the employee around, without fear of losing them.
Value of a founder / CEO (e.g. Gates, Zuckerberg, Musk, Jobs, Ellison, McNealy, Benioff) is interesting, because they set their own pay levels in the early days, and reap the benefits later. Each one of them took a risk, could have lost it all, yet won. The list of those who ran shops full of code writers who died is much, much longer. So, yes, there is SOMETHING about the winners that sets them apart, and I think that it is more than just luck. As a shareholder I am happy to see them make money as I draft along behind them.
Plenty of coders, in the end, provide zero value to the marketplace as objectively proven by dead projects. Their bosses are just as guilty, and often lose some of their own money. Once again, I have flushed millions of dollars of other people money down the toilet with ideas and code that never came to fruition. I flushed a fair amount of my own cash as well, in hopes that it might pay off.
We have a capitalistic system that is fairly efficient at both determining value of a product and value of an individual from a capitalistic perspective. What we need to focus on is ensuring that everyone has the chance to hit the level of value they are capable of, and that they are willing to work towards. We also need to ensure that there is a minimal floor.
None of this has much to do with the market cap of Facebook or Microsoft, or the percent of that market cap owned by their founders.