I am pretty sure that the whole open source ideology was developed and disseminated exactly by a cartel of those massive corporations with the sole intention to amass as much human-written code as possible to train AI.
AI algorithms were developed in 1950s, and what all those vultures were waiting for was a good dataset and enough compute power, which they saw coming in advance.