Spains problem is that their economy is terrible. Tourism is almost 15% of barcelona's economy so the tourism sector has political power but all the people who dont benefit from it are pissed. They cant afford to piss off the tourists but tourism has a lot of negative externalities.