Having strangers sleeping near you isn't the problem. I'm guessing that folks that aren't sympathetic to this legislation don't live in urban apartments.
My personal experience: the person upstairs starting using AirBNB aggressively. So, former peace and quiet went away:
+ Euros arriving at 2am, proceeding to open slam shut every cabinet, jump on beds, play loud music,
+ A freaky dude knocking on my door at 8pm, complaining that my TV was on, he wanted to go to bed,
+ High school kids having a massive party, live band, PA,
+ Early morning cleaning crews, not being gentle.
Yeah, my neighbor was clearly an inconsiderate piece of shit. But who to complain to? The landlord is absentee. AirBNB doesn't regard me as having any standing. In fact, I'm bearing part of the cost in order for AirBNB to profit, and I'm not OK with that.
So yeah, this legislation is required. I'm legally guaranteed the ability to enjoy the property that I'm leasing; AirBNB and other service like that subvert that. When they can police themselves, I'll be OK with them. Not until then.