Most systems won’t change overnight because of the guy on top. What makes you so sure Brazil would have done better with the opposing party candidate as president?
Maybe the problem lies in a supposedly chronically underfunded healthcare system, by a number of previous administrations? This would then reflect, in an electoral democracy, of the citizenry’s misplaced priorities.