they didn't, they voted for pea castillo, who got deposed after trying to dissolve parliament and declare a state of emergency   she was forced to become the replacement of the former president, since no parties (including hers) agreed to a coalition government or new elections. that means they're sabotaging her government in order to not deal with the political, security, drug trafficking, and economic crises themselves, so as to get a more voootes next election
Spain