It might be the solution to
that, but it creates a
lot more problems for the actual residents of the city. Drives up their rent, lowers their supply, makes them have to deal with neighbours coming in at all hours of the night, often without a care for the fact they even
have neighbours who have to wake up and go to work in the morning. Ruins any community in a place. All the negative externalities get hoisted onto the actual residents of a town.
Now, should there maybe be an area of the city explicitly for short-term rentals, included in city planning? That's a different question; but it shouldn't be mixed in normal residential area, as all it does is make life worse for the actual residents.