Average salary (that is, the mean) isn’t that good of a metric even if you account for region, industry and so on, because just one outlier can easily skew your entire statistics. Median is much more useful in that regard.
Source: me, someone who writes tools for processing and gathering large amounts of confidential employee data, including salaries of wide range of companies across multiple countries.
Ah, good old capitalism apologia. I’m not sure the billionaires need your fervent protection, but whatever helps you sleep at night.
Also if you think you will see any of the profits from that better job, that’s quite humorous. You will, at most, get a tiny raise that isn’t even comparable to the amount your boss puts in their pocket. Maybe a pizza party.