Many times, a CEO at a large corporation is paid so much because they are the designated "fall guy" when things go south. The limited liability entailed by the standard corporate charter essentially insulates the owners of the company (stockholders) from accountability. So, they hire unscrupulous people to lead their company with implicit (or explicit) instructions: "Do whatever is necessary to maximize profits. We don't wanna know about the details, just make it happen." If the CEO is caught doing something illegal or unethical, they'll take the hit. The company will, mostly, go on unscathed.
On the flip side, CEO's and entrepreneurs makes so much money because what they do is really, really hard and benefits a lot of people. Organizing large projects is extremely difficult and requires outsized ego and confidence. And, to do effectively, ability.