Spain did do real lockdowns and it worked. And then they stopped doing real lockdowns. So it is in fact supported by the evidence.
Madrid in particular did pretty poorly at this.
Additionally, their economy is so dependent on tourism that they felt they needed to open back up to avoid ruination.
This lead to loads more cases, coupled with pandemic fatigue and here we are.
Lockdown works; Spain would have been fine by now if they were more careful with opening (not allowing the British in for instance). But alas it is worse than ever and there is no stomach for another lockdown so people wear masks but restaurants are crowded every day and there are few travel restrictions so...