So it is within a cities interest to have some degree of control ofer the amount and kind of tourism. And controlling the number of accommodations is a pretty good lever.
If that was really a concern, cities like Barcelona would be railing against hostels and would impose a higher baseline for tourist taxes to eliminate the economic feasibility of projects catering to low-cost party tourism.
Surely there are multiple ways ro tackle that, e.g. one could require permits for those as well, but I didn't defend the measures taken by Barcelona, I defended the fact that unregulated AirBnB can turn into a problem for a city and the people living there.
In Barcelona, making apartments available as short-term rentals involves the exact same type of reglatio that hostels need to go through to operate.
If AirBnB is suddenly deemed a problem in spite of the absolute lack of evidence, in the very least regular horeca businesses are more to blame.