I think you're seriously undervaluing what libraries as an institution provide both as one of the few public spaces where people can just be, without having to spend money to justify their presence, alongside being a resource to access knowledge, with people trained in the art of suggesting good or at the very least not terrible resources to start people's inquiry into subjects they aren't familiar with, as well as being a unified voice acting in the public interest, to retain and expand those same offerings.