Indoor air quality refers to the air inside buildings, where pollutants can be trapped and accumulate, while outdoor air quality is affected by external factors like traffic, industrial emissions, and natural events.