Why can forests regulate the temperature?

In summer, trees carry out photosynthesis and transpiration faster, which can quickly release water into the air. The evaporation of water takes away heat, and the forest cools down; In winter, the photosynthesis and transpiration of trees slow down, and it is difficult to emit heat. Moreover, direct sunlight into the forest can also raise the temperature of the forest, so the forest will be warmer. Forests can not only regulate their own temperature, but also play the same role in the whole surrounding environment. Because it absorbs a lot of carbon dioxide, which is the main factor of climate warming, forests can be said to be nature's "green air conditioning".