Besides the carbon footprint of transporting food, the food we consume is carbon neutral since the carbon in the food comes from the atmosphere. Therefore the CO2 gas we expel is mostly carbon neutral.
Cars are a different story since their carbon originates from ancient reserves(oil and coal) that has long since been removed from the carbon cycle. This carbon is now reintroduced to the carbon cycle, thus leading to a positive carbon footprint.
Put differently, if our food we eat consisted of carbon extracted from oil or coal, then we would be adding CO2 to the current carbon cycle, thus leading to a positive carbon footprint. However this is not true.