If a software engineer is contributing millions of dollars in value each year, they are doing it on the backs of the giants that taught and coached them to get to where they are today.
The truth of where the value to society comes from is somewhere between the "shoulders of giants" myth (that everything is obvious in light of what came before, and nobody really creates any value) and the "lone genius" myth (that value is created solely by bright individuals).
Some component of the value that we attribute to a person likely comes from their teachers, but it may be 0 (or negative - lots of teachers demoralize their students too). However, a significant portion comes from them.
Some ultrabight people did the hard work, and you're just using their stuff. There's no spectrum between 1 and 1
Also, the average kindergarten teacher probably generates a lot less than $300k per year.