Why is the Amazon rainforest considered the lungs of our planet?

The Amazon Rainforest is home to a huge amount of vegetation and plant life. All plants produce oxygen in the process of photosynthesis, so because there is so much vegetation in the Amazon rainforest it is considered the lungs of our planet.