Rainforests are called the lungs of the Earth because they play a crucial role in producing oxygen and absorbing carbon dioxide through the process of photosynthesis. Just like our lungs take in oxygen and release carbon dioxide, rainforests absorb carbon dioxide and release oxygen, making them vital for maintaining the balance of gases in the atmosphere.