According to the Environmental Protection Agency, a dirty carpet can retain several sources of indoor air pollutants, including pet dander, allergens, lead, particle pollution, and everyday dirt and dust. Toxic airborne gases can adhere to these particles and also get trapped within the carpet. These toxic gases can be released through everyday activities such as vacuuming and walking across the carpet, which can cause them to contaminate the air in your home.