There's nothing right or wrong where the teacher or a doctor lives. That's their own decision.
What matters is their performance at work and that there are not only intrinsic motivation but also an extrinsic motivation with monetary incentives to perform well at work.
And that can only be ensured with a free market that allows schools to pay better for the best teachers and also parents to pay more for the best schools.
Just give them your children and hope for the best.