Except for the DRM, that is exactly how the internet archive works for content that is still under copyright. However, for libraries, they often have a limited number of borrows per book (enforced with the DRM), and they are effectively renting the book, not owning it. Which gets back to the imbalance of copyright law and enforcement.