Water molecules are attracted to each other. In a liquid, the attractive forces are experienced in every direction. However, at the surface there is an interface between water and air. Hence, there are no attractive forces above the surface to balance the attractive forces below, which creates an imbalance. The surface molecules experience force from the underlying molecules, which results in a tension at the surface.