>But in a hotel you're guaranteed a good experience?
Usually, yes, and, additionally, you are going in a place that is surely registered with the local authorities, has been licensed to host you, follows a number of Laws (regarding - among the others - size of the rooms, safety, hygiene, preparation of food, etc.) that is human-presided and that has a lot to loose if it gets a "bad name".
Obviously if you are in the same price range, you are going to (you choose) a "better" AirBnb or a "worse" hotel.
A hotel has - again obviously - much higher running costs than a rented room in a house or than an apartment, as hotels tend to have personnel and pay them.
Conversely - viceversa - an AirBnB run "as a hotel" - has even greater costs (no economy of scale)than a hotel, only very often the owners (at least here, Italy) are not very good at math and if they operate according to the Law, once they have paid costs, commissions and taxes they find out they gave essentially invested a lot of money with very little return.
One or two spare rooms (like the one the parent poster described) inside one own's apartement and run by the family is what an Airbnb should be (but often isn't).