I don't think very many libraries loan out donated books. It's cheaper for them to buy the book from a vendor who prepares it for their system than to pay staff to do the same with a donated book (Ingram is one of these companies, I'm sure there are others).
Libraries have limited space for books. They need to choose the best, donated books might or might not be the best for the people there.