A CEO does not deliver 100x more value than entry level employees. A CEO is in a position of power, which enables her to claim such a wage.
The CEO is essentially the face of the company when things happen (good or bad) and has huge responsibilities. Managing a company is easy from the armchair.
As far as lawyers are concerned, their wages just reflect the fact that they (should) have been trained as A-list negotiators, and it is common practice for lawyers to have a fee based on a percentage of the deal they negotiated.
There is a corollary for programmers for the above: start-ups. Though not trained negotiators, skill and work ethic can get you far enough. And it is common practice to receive a percentage of the reward.
The grass always looks greener on the other side.