The real problem isn’t with the teachers or principals.
There is no one "real" problem. Everything is the problem. There is no part of public 'education' performing acceptably. Not administration, not teaching/teachers, not students.
It would be impossible to design a system that works worse than this. There's no accountability anywhere.