Libraries handle the preserving and sharing to the public of information. In spite of copyright, not thanks to it.
Historically they literally copied one book into paper to duplicate/preserve it. That would be copyright infringement now.
And more recently copyright holders are trying to delete any archives that could be used for that purpose like the internet archive or LibGen. In other media we have game roms and copies of shows being illegal. Same treatment if it has been a week since release or it's been 20 years and you can't get it legally from anywhere.