I’d certainly not say it’s everything, look at all the highly-paid mediocre CEOs. Education has rigorously been shown to lead to higher incomes and wealth on average.
Yes, companies pay for what’s perceived to create revenue and profit (and yes, skills are a major factor in that).