Well look at a map of Barcelona. Hotels are in the middle of residential areas throughout the city. Not sure what the permitting process has to do with any of this. Hotels take up land. Land that could be used for residential housing. Permitting can be changed by law (same as banning AirBnbs).
https://www.google.com/maps/search/barcelona+hotels/@41.3806...