Econ or Bloomberg had an article about a month or two ago about stores locking up their merch and the motivations for it, and why it's such a stupid idea (sales plummet when you need an employee to unlock deoderant). One of the reasons for locking everything up is that they don't have good inventory management systems and when a manager or higher level person sees empty shelves they assume theft...but often times it either hasn't been ordered or simply hasn't been put on the shelves. Most real theft happens from the trucks delivering the goods.
edit: found it
https://www.bloomberg.com/news/features/2024-08-01/why-cvs-a...