Rainforests are called the lungs of the Earth because they absorb carbon dioxide and produce oxygen through the process of photosynthesis. This process helps regulate the Earth's climate and atmosphere by removing carbon dioxide, a greenhouse gas, from the air and releasing oxygen, which is essential for all living organisms. Just like how our lungs provide oxygen to our bodies, rainforests play a vital role in providing oxygen for the planet.