You see this in public libraries in major cities. They're open to everyone, so they become shelters of last resort for homeless folks. The large presence of homeless people discourages the public at-large from using the library as a library. That in turn weakens the political will to continue funding libraries.
I live in an area where the homeless by and large are well served (lots of halfway houses), so despite being a generally impoverished area in terms of bottom quintile of income or percent of population on food stamps and so forth, public facilities like buses and libraries get to be used for their intended purpose.
A library levy recently passed despite being in a deep-red political jurisdiction. If families couldn’t use the library without contending with people using it as a residential facility, it wouldn’t have passed.