To expand on your point, I have friends who have been occupying a nearly 100 year old house for 30+ years who in the last 2 or 3 started renting it on AirBnB. I lived there while in college for a few years as well. It had live knob-and-tube wiring [1] whose asbestos sheathing had long since flaked off or were ready to flake off at the slightest touch and many other not-even-close-to-current-code issues that were 100% legal due to it being grandfathered in. When doing renovations (prior to being an AirBnB) a lot of these issues were fixed but had the city not forced them to add extra exit lights and fire extinguishers and smoke alarms, people would have been staying there with absolutely no idea about any of this.
Unfortunately it varies it seems whether or not BnB's (air or not) are subject to extra regulation, even if its not the same as a large hotel.