The thing is that as a tourist/traveler, it's not all about you (or me). You need to consider and be respectful of the impact your experience can have on the very locals you want to live like.
Your desire to have a kitchen is reasonably not more important than a local's desire to not see the apartment next to them converted into a illegal short-term rental where random strangers routinely come and go, or to be priced out of the market because it's more profitable for landlords to convert properties into illegal short-term rentals.
Incidentally, "living like a local" is about more than having a kitchen and this is in my opinion one of the most overused terms among the nomad set, but that said, if you really want to stay somewhere longer term and have a visa that lets you do so, you can try to rent a property legitimately. In fact, finding a legitimate rental, meeting a landlord, signing a lease, etc. is a perfect opportunity to "live like a local".
> Many of the places I've visited have few or no hotels. One place I actually did stay in a hotel... the only hotel in the entire town, which also had the only restaurant in the entire town in it. In communities like this, someone offering you a room in their home or letting you rent their apartment while they are away is a critical pathway to being able to travel there in the first place and I don't think attracts the sort of people expecting a packaged experience.
As you said, some places don't even have regulations because they don't see many tourists. It's one thing to show up in a town that's off the beaten track and be introduced to someone who will rent you a room for a few nights. It's another to have property owners interested in maximizing their earnings advertising their property to every Tom, Dick and Harry using the internet.