I think this is store policy, not the law.
> Shoplifting is a crime as it is a form of larceny or theft. Different states may refer to shoplifting in different ways, but a shop owner who suspects someone of shoplifting may detain them until law enforcement arrives if the shop owner has reasonable proof of the crime - either the owner/manager, a loss prevention associate or another employee personally saw the individual take or conceal an item or the store has surveillance showing the taking of an item. Any detention, however, must comport with any store policies and state law. [0]
It is my understanding that they can make a citizens arrest and physically detain the shoplifter if they wanted to. Walgreens and other large companies choose not to do this.