Here's some articles that better explain it, it's not an industry secret. The stores are arranged specifically to exploit this.
https://www.foodstorm.com/blog/grocery-perimeter-department-roi
https://www.fooddive.com/news/grocery--fresh-growth-perimeter-trends/435201/
Those discount and convience stores are not grocery stores. It's not the same business model.