I install few apps on my phone or tablet, not trusting how intrusively nosey and tracking they can be. But a few exceptions are notable, one being Too Good to Go. The Wilcox family uses the app almost daily now, for finding good food made available at substantial discount.
The stuff might otherwise be trashed, particularly because of local regulations that restrict fresh, produced goods’ salability after set time period. Freshness is another consideration. Both could apply to baked goods, such as bagels or donuts. Over-production is an additional factor. Maybe the pizzeria has too many slices leftover at the end of day.