The voting population has a collective memory of only a few months.
Where I live, we had some of the strictest and stupidest pandemic lockdowns in the western world. People protested the lockdowns, blamed the wrong level of government for implementing them, and then re-elected the party that DID implement the lockdowns with a very low voter turnout.
The restrictions had been lifted maybe months before the election, so the lockdowns were a distant memory for the fraction of the population that showed up to vote.