Climate change may explain why history is repeating itself in Brazil.