There are laws in New York City that say (with good reason) that you can't just turn your home into a hotel. New York is simply enforcing the law.
If Airbnb really has the public support they claim then it should be easy to change the law. The reality is a lot (likely vast majority) of New Yorkers really don't want the status quo to change. The politicians know this and hence why they took this path.