A Google search shows Google has about 40K software engineers, while the USA has about 18M software engineers. This means Google hires about 0.2% (i.e. 0.002) of the software labor force.
This means that Google only captures 0.2% of the benefit from increasing the labor pool. 99.8% of the dollar benefit goes to other people -- some of who are competitors even!
Further, Oracle hires a lot more software engineers, but Oracle is notorious for its profit motive and bad image while Google tries (in name at least) to be altruistic. Is Oracle spending as much as Google on STEM? How about IBM, SAP, etc? If the math works out for Google, it should doubly work out for companies employing more software engineers.
This is a theory that seems like it can be true (and make you seem smart at cocktail parties), but the math doesn't seem to add up.