Prior to the internet, it was difficult enough to get word out and so forth about a spare room that short term rentals could be regulated largely as an afterthought. Now, they're a multi-billion dollar industry.
There may be a middle ground we need to find, something between "government out of my private home" and surprise inspections of a hotel. But things like unpermitted wiring, lead paint, uninspected furnaces, the absence of carbon monoxide alarms… while these things are actually illegal in residential units, I think the game really does change when you start to expose potentially hundreds of people to this over the course of a year through commercial use of a property.