Obvious corollary: if you're lucky enough to love doing something useful that most people would hate, you're likely well situated to get paid a lot for doing that thing.
On which note, I don't think it's an accident that some subdomains of programming have really happy people making good money. Sure, it's work they love, but optimizing compilers or whatever else appeals to few enough people that it's a great fit for anyone who does like it.
I am not saying that this justifies the crazy high pay of CEOs but it's a tough job.
http://time.com/money/4790237/ceo-pay-salary-compensation-in...
> American CEOs got an 8.5-percent raise last year, taking in a median of $11.5 million in salary, stock, and other compensation.