There is a big difference between eating and smoking. The harmful substances are not absorbed by the same way.
When one inhale polluted air, the substances go straight to the blood (via the lung).
When one ingest food , the substances go through the process of digestion, and are filtered/transformed at different levels (stomach, intestine, liver).