Books have limited print runs. Many books in libraries are only borrowed and perhaps read a few times. Niche titles more so. Books go out of print and are hard to search for arbitrary text.
The ease of making copies of digital data, the ease of indexing them is totally different from books, just as writing, clay tablets, scrolls and books were from a purely oral society.