Exactly, consider Apple Retail employees, who need to be searched [1] every time their shift ends due to suspected theft. Having automated cameras that can better track products could significantly alter this check.
They get searched because Apple devices cost hundreds to thousands of dollars.
If all the store sold was usb charging cables, there wouldn't be any searches.
Unless the grocery store is selling tins of caviar, the problem is simply not at the same magnitude.
Any other concerns about cheating the system for thefts are as ludicrous as people worrying about people shooting drones out of skies with shotguns or hijacking self-driving trucks.
[1]: https://www.theverge.com/2020/2/14/21137580/apple-store-reta...