I think all the main points have been considered and mentioned here already. I agree with Sequin regarding transpiration as a pumping mechanism for getting water up to the leaves and, through this, supplying the plant with nutrients that are carried in the water (as detailed by Newtron.) Evaporation through the stomata is the main cooling mechanism for the majority of plants. In the process of getting rid of some water, carbon dioxide for photosynthesis can be taken on board. I think it's a bit simplistic and misleading to talk about whether or not plants transpire "on purpose", as it suggests a thinking quality on the part of plants, although I appreciate what is meant. It's probably better to think in terms of how plants are adapted for the functions of, for examples, nutrient transport and photosynthesis. The mechanism of transpiration is the main adaptation.