@codewiz I'm not certain how Uniqlo does it, but in Singapore, the local library system uses large NFC based open gantries at its entrances. These can automatically detect library books passing through them and sound an alert if it detects library books that have not been borrowed.
Possible Uniqlo has a similar, or more advanced system.