The people are rightfully angry with their government, and their fury was likely not intended to hurt the king and queen, who play no official governing role. While the royal couple may have some mud on their faces, the public saw them comforting the flood victims while their actual government leaders were busy playing blame games.
Make no mistake, the public's anger was directed at both the Prime Minister and the royal couple. This visit came a full four days after Valencia was destroyed by the floods, and while villages were still waiting for authorities to show up and help, they saw a team of officers appear solely for the protection of the monarch and politicians.
There's a 2% chance that Spain will announce a snap general election before January 1, 2025, according to the Metaculus prediction community.