When the air aloft is warmer than the air at the surface air molecules get trapped close to the ground and don't rise into the atmosphere. The pollutants in the air also get trapped at ground level and can reduced air quality over time, especially as more and more pollutants get released into the air.