The online library known as archive.org tried exactly this. They got sued, to no one’s surprise.
Because authors and publishers wouldn't be very excited about that and would lobby governments to limit that (and I 100% believe they would be right to do that).