Complacency a systemic problem. When your union protects your job, you don't need to actually put effort into doing the job. Of course, that doesn't mean ALL teachers are lazy; but it does mean that a teacher who works hard and gets better results than average is not rewarded for it. It also means that bad teachers cannot be replaced by good ones.
Of course, preventing public school teachers from unionizing will simply allow the government to exploit them. Perhaps the solution would be to replace unions with a professional order, similar to how engineers and lawyers are regulated.