It's a logistics and resources problem - libraries are: shelter, safety, heating/cooling, running water, restrooms, a place to sit... Truth is we don't afford that to everyone here and a lot of people ignore the cruelty/suffering. Hell - some even justify and celebrate it.
What other free indoor facilities existed in the past?
I think it's fine to encourage people to spend time at the library. I know as a kid, I grew a lot as a person at our local library.
They had after school activities once a week, it was about a mile down the road, so we had to learn to be responsible walking after school. The librarians were always kind to us, even though I'm sure as teenagers we probably weren't always a carbon copy of the model, upstanding citizen.
I could spend time with my friends discussing various topics, with easy information available if we couldn't agree on the facts. Plus, I kissed my wife for the first time on the bench outside. Libraries are great :)
You're expected to donate, you're just allowed not to.
https://sfist.com/2013/08/27/were_doomed_sf_main_library_bat...
And yes, with children access to a bathroom is necessary.
Also now elsewhere and going to library is so fun. We can bike etc. they are reasonably strict though. No sex, drugs, sleeping etc
I contrast that with the library in Austin. Obviously, as a free, warm, comfortable space, there are tons of homeless people there. But, unlike in SF, the Austin library doesn't let them trash the place - the homeless there are just using the library like everyone else. There is a strict no sleeping/lying rule (which I've seen enforced) which prevents anyone from basically taking over a section of the library. The bathrooms have always been immaculate whenever I've used them.
IMO the Austin library's policy toward the homeless shows how you can be respectful and welcoming to all while still requiring everyone who enters to respect the building.
https://en.m.wikipedia.org/wiki/List_of_sovereign_states_by_...
The below article seems to indicate and average of around 700k in the EU.
https://www.greaterchange.co.uk/post/does-europe-have-a-home...
I don't believe there are many other parts of the world where this happens.