To put it another way, the only way Google, Apple or Facebook pay an engineer $1M+ is either because of an accu-hire, to stop them from jumping ship to one of their competitors or to stop them from jumping ship to start a startup.
Brilliant programming that creates even billions of dollars of value for one of those companies isn't even going to net the engineer 1% of the value they create.