Fire safety is the most obvious example. A modern hotel is engineered to slow down the spread of fire and preserve life. Sprinklers, fire resistant doors and walls, etc.
Airbnb is an awesome thing when it does what it initially did -- handle house rentals. When that business model failed to provide growth, they pivoted to the current model where they've become the eBay of real estate by turning a blind eye to obvious fraud and abuse.
If you legally convert your property to a hotel, that use change triggers a need to become code compliant.
Also, accidents are more likely to happen with short term rentals. People tend to take care of their stuff better than someone else's.
That's what the law currently says. Since you are so worried that people might burn to death, why shouldn't we change this law?