Because libraries predate copyright and publishers and all the industry behind it. If libraries were to be invented nowadays, they won't let them purchase a single physical book to be enjoyed by several different physical persons over the course of time. What the publishing industry would like to have is 1 physical person = 1 or more physical copies, not the other way round.