The person I was replying to enumerated a list of reasons for airbnb being bad. The reasons he gave seem like there could be a good amount of overlap between non-airbnb rentals and airbnb rentals.
The law is just the current rules that are defined for a given jurisdiction. I don't think they codify the reasoning behind why the law was enacted, what it was looking to prevent, or how it hoped to achieve that. The reasoning behind why these laws were enacted could range from genuine concern for safety to nymby-ish "because I want my house to appreciate in value more".