Not many Math and Science teachers see student making 20 million a year like some Physical Education Teachers do. If you want to use getting paid by how successful the students do then you have to accept that some teachers will be paid more than others because the student is more successful.
Only a tiny fraction of gym coaches will ever coach a pro athlete. Most science and math teachers will teach far more people that are highly paid in the tech industry.
Math and Science are vastly more generators of wealth in this country than professional athletics.