You can shop the day before at a grocery store and stock up. Generally you don't order a meal at a restaurant to eat the next day (doggie bag leftovers are not your primary goal).
So explain to me why a grocery store must close but a restaurant can be open.