Most libraries have book drops, so that people can return books when the library is closed. There’s no way of knowing which person returned a copy of a book
Mistakes happen. Bettie Joe Patron swears that she has returned the book. And here it is on the shelf. There is no way to determine whether the book on the shelf is one that she returned or one that has been sitting there the whole time.
Sometimes the network goes down, there is no room to stack up little piles of books sorted by the person who returned them until the computer comes back. And even if there was, you are asking for mistakes. See above.