The ultimate purpose of a library should be to help with access to knowledge and information for all. In 2026, it's not unreasonable to think that includes internet access, eBooks, perhaps even desktop computers for those who don't have their own.
you don't need library for that, if you have laptop or at least smartphone which most of the people have, free wifi is everywhere (and certainly more frequent than libraries) and then you can access whatever information/ebooks you want