The Rollercoaster in Brazilian Education

What accounts for the slide in education in Brazil? It's certainly not the money, they spend considerable more on education than other developing countries.