They don't necessarily want to be in charge of providing other needs for the homeless. But their question is: where else are those homeless supposed to go? The library is the most visible public-facing aspect of the government. If they can leverage that to bring services to people, that's a good start.
The solution is not to ban the homeless from the libraries. The solution is to bring the rest of homeless services and support to the place where the homeless are.