Evaporation of water at the air-water interface in the leaf generates negative pressure (tension), drawing other water molecules out of the xylem by transpirational pull.
The water vapor exits the leaf through stomata.