Probably more that they don't want to encourage people stealing library books to make a few dollars selling them. It's probably an enormous hassle for the bookstore and the library both
Next time somebody recycles the meme about "the reader doesnt steal, the thief doesnt read" proverb from alleged modern day Irani booksellers who dont lock their wares, I got the perfect reply.
Well, I don't know anything about that expression but, in this case, the thief (that steals from the library to sell to the bookstore) doesn't read, and the reader who buys them used didn't steal anything.