Is this discrimination legal?
Are you talking about just in the states or worldwide?
Airbnb categories aside, I believe most municipalities require you have a smoke and CO detector installed to be renting legally as a short-term rental.
That isn’t to say, however, that most people read or even look up the rules.