Because it's an apartment building with shared space, shared resources and shared investments. If your neighbors plot is a residential plot, he cannot build a pig farm there or a nuclear power plant. If your neighbors apartment is an apartment, he cannot have a shooting range, a bar, a strip club or a hotel there. There's a difference between occasional guests and airBnB, the same as there is a difference between a friend who helps you fix your car vs someone who regulary fixes cars for money.
As long as the property owner registers their short term rental with the local government and pays their taxes, and as long as their guests are respectful and don’t cause any trouble, why do you even care?
It's a limited resource being misused. It is in the interest of the locals for tourists to stay in hotels and apartments to be available for long(er) term rent for the locals. Barcelona was one of the first cities to ban short-term rentals (under 31 days), and hopefully not the last.
It’s only “limited” because housing has been made artificially scarce by local governments operating in the interests of property owners by restricting new builds in order to keep housing prices high. In regions and countries that have allowed enough housing to be built to actually meet demand there is much less hand-wringing about short-term rentals.
I think I get your perspective (but also you should really understand that your arguments are just going unidirectional instead of building a healthy dialog), but it made me wonder what really went wrong (or changed, depending on your perspective) from Hegel's utopian egalitarianism to how communism was implemented in practice a century later. I guess people just tend to "adapt" legal and governance theories built with perfectly good intentions to their advantage and then things go awry.