States intervened in primary education some 100 years before democratization. Primary education became compulsory still before democratization.
Well, educating children didn’t turn well for the non-democratic states. This also explains why education is not a central focus of many govts these days.