It’s very simple. Driving causes more accidents and trips to the ER exposing more people and cops. Driving can’t happen unless you grab hold of a nasty filthy gas pump handle. Driving takes you out of your neighborhood where you’ll see golden arches and just have to stop for a Big Mac where you’ll be picking up the virus or spreading it.
You make many assumptions. You're saying that because people *might* do those things, they should do no non-essential driving.
People can safely drive to many places. Including to do shopping, go to drug store, etc.
As far as pumping gas, that's what paper towels, gas mitts and hand sanitizer are for. People are going to purchase fuel regardless of the type of trip.
And far as eating at MacDonalds- there's no current evidence - none - that food is a vector for COVID-19 transmission. A possible issue is if the bag/wrapper that the food is in. Carefully remove the food.
This is about minimizing risk, not eliminating risk.