AirBnB, Uber & Lyft were always illegal corporations. There existence was always based on regulatory arbitrage. There are strict Taxi & Hotel laws & taxation they just by pass. I still don't understand how they are allowed to exist.
I guess enough politicians just look the other way since they are so popular.
I guess the attempt of letting a free market function, sometimes leads to monopolies. I remember when taxi drivers had to reduce their fares because of Uber, we got an instant benefit from it. Then they became the norm and started to raise prices, now an Uber is as expensive as a taxi. Which doesn't make sense, since taxis need to pay expensive licenses to operate. I can see the Spanish government doing something about it if it becomes a problem.
AirBnB has been always a dodgy option in Spain, it has never become an accommodation that someone would recommend, so it makes sense that the government is acting against it. As a note, the Spanish government never tried to close Uber down. They present a risk to taxi drivers, but we understand it as a free competence, they provide a service and you choose the company you want, that's all. AirBnB on the contrary is a clear threat to health and safety rules for neighborhoods, so it is very apparent that it has to be controlled.
Another company that got a hit is Glovo, I don't know if it is popular in the US. You must have equivalents there. They employed false contractor as riders, causing very poor labor conditions for them.
In Europe if something is against the population they will shut it down as soon as they can, regardless if you think it is communism or not. Governments do not take the risk of letting companies to take over public services, specially in health care or food related matters. They will not allow it. Riots spread too easily all over if they do. People start setting things on fire immediately, it is a common theme around here.