It isn't politically correct to say so, but the main problem with education is the parents.
Most parents want their children to "have a childhood" and not have to do too much homework. Most parents don't push their children to learn as much as possible. Most parents want their children to go to college so they can get a good job, but they don't believe that learning knowledge per see is important, and don't teach their children that learning knowledge is important.
So of course, children, egged on by the attitudes of their parents, try to get out of actually learning anything, and the children are successful in resisting school and teachers.
Some people push their children to do well in school, and those children then do well, even when a school isn't very good. New Asian immigrant parents especially push their children to do well in school, and Asian children tend to be at the top in their classes.
Jim