@lio @CStamp @internetarchive Generally libraries (at last in parts of Canada) pay a bit extra for books so the author can get at least a bit of compensation to make up for fewer sales of the books. Authors spend months or years working a book -- they need to get compensation for at least some of that time. Royalties don't bring in much for most authors, so when digital copies are stolen, it really hurts the creators/authors.
Not that many books in libraries are donated -- many donated ones aren't wanted.