A handful of corporation own most of the grocery stores, but grocery prices remain reasonable, nowhere close to as insanely priced as rent.
The difference is real competition: there's only so much land that exists, and localities only allow so much housing on that land. Demand goes way up, supply goes up only feebly, the result is predictable.