Leaves have openings - stomates. When the stomates are open the plant loses water by evaporation to the atmosphere, as Turbo says. This has several important effects. One is to allow the leaf's metabolic machinery to operate at temperatures that would normally slow it down: air-condtioning.
It also moves water from the roots up the stem, along with minerals. The stomates also allow CO2 into the leaf for photosynthesis to build more plant tissues. Plants are a net sink for carbon dioxide.