Makes sense, especially in rural areas when they are open 24/7 and the robber needs some free pills.
Pharmacy employees used to be followed to their cars by drug thugs who demanded they get them opioids and other street popular drugs from the store. Now no fear of anyone with a gun around but the thugs.
Also, some pharmacies had signs that customers had to wait 1 -2 days to get certain Rxs filled so store would not have to have a large supply and risk attracting a robber.