Amazon is refusing to sell books to libraries just to maximize their profits.