You can call it logic, but it isn't very good logic. If people can go to the grocery store without getting sick, they can go other places. If they want to recommend or even mandate precautions, just do that for everyone across the board.
That's not the logic I suggested, and I don't think that's the logic anyone's used for judging "essential" or "non-essential" businesses.
The point isn't that disease only spreads in certain places. The point is to limit the places we go, so there are fewer places you might catch, or spread, the disease. If we had the infrastructure to deliver all the food, medicine, and other necessities to everyone's homes, they'd just force all the stores to close their doors to walk-in traffic, and just make us stay at home, and wait for the delivery guy to drop things off outside the door. Instead, they have to just allow us to go buy our ground chuck and batteries and furnace filters and socks, etc. But since you can, theoretically, survive
a few weeks a few months until there's a vaccine without the gym, or the bar, or the church, they figure they can just close those for a while.
I agree we closed too many things, for too long. Personally, I've been going into work (and church) this whole time (albeit, only every other day), and I've been going to just about every place that's still open, FWIW.