I guess that explains why so many libraries are tossing old books, even local history books that have probably never been digitized and will be impossible to replace, while at the same time finding money to have larger computer rooms. Libraries are forgetting their purpose, giving people access to books and other documents should come before more vague missions like "access to knowledge" which gets twisted into meaning something other than books and documents.
Free internet access can be gotten all over the place. I can get online at McDonalds, but I can't get books at McDonalds.
My librarian friends spend most of their time playing with relational databases and showing patrons how to use computers.
And no, bookstores do not fit my vision of libraries. I specifically mentioned libraries hosting old local history books and other documents. Stuff that is long out of print, many times was never "in print" in the first place. In libraries that haven't suffered the purges as badly you can find things like binders filled with documents that a local history buff a century ago compiled, detailing town history a century before that. What bookstore has such a wealth of information? Once libraries get rid of that stuff, it's usually gone forever.
And yes, you can get free internet access, but those research databases I mentioned are not free to access. There a millions of "documents", to use your term, already indexed and categorized, with varying quality of searchability.
Let's not skip over the main point I meant to emphasize: librarians. I get why people in tech believe that they have all the tools and skills to do their own research. They don't value librarians for the expertise they have, even though just getting an entry level librarian job requires more education than most programming jobs.
The trend in modern libraries is for shorter shelves to improve accessibility. Not everyone is 2m tall or can climb steps and ladders.
And it must be acknowledged that physical books are less important than access to knowledge, facilities for study, and librarians to assist. All of those can exist in a comfortable, quiet space with a fast internet connection, a few printers, and lots of invisible but still valuable electronic databases freely available: ProQuest, JSTOR, PubMed, ERIC, etc.
Yes, it's comfy and familiar to those of use who grew up before the internet to wander among the dim stacks of dusty books and take in the aromas, but the real value of a library is the information in whatever form it takes.