Yeah, but no one ever got rich off salary.
These people called "executives" can. Programmers generally don't, unless they're very good and very mercenary, and even then "rich" means "7-figure net worth and the ability to consult at a decent rate as much as one wants". Which isn't bad at all but isn't VC MegaBux.