There are plenty people who are qualified for teaching children math. But it would be a disservice for them and their family to accept a low wage teaching job when they can work for $400k+ elsewhere.
Your argument is like hiring only minimum wage workers to build rockets, then complain that on average they don't provide that much value and can't solve integrals in their heads.
If we want better teachers, the solution is not surprising: pay more.