There are two clear reasons to close them
First is the cost of staffing
We can get local volunteers to carry the work required

Second is the cost of operating old buildings often in sites which developers want to acquire
This is more tricky as the squeeze comes on from cash strapped councils looking to cash in on their assets

I think there are lots of discussions about virtual libraries but this costs significant investment

I believe libraries offer a public service which is second to none

Back in the good old bad old days The miners often sponsored libraries through the miners institutes. One of the reasons for this was that the general sentiment was that they didn’t want their kid going down the mines like they had to

This had a big hand in increasing the numbers of working class youngsters attending university often in England and was a considerable mover in the Welsh diaspora into the English education system. a lot of these youngsters never came back to wales to work and contribute to the community which provided them with opportunity for betterment

Are libraries a good thing ?
Imo yep for sure