As soon as the liquid comes in contact with the walls of the tube, a contact angle is established. In the case of water and glass this angle is small resulting in a concave meniscus. The surface tension acting on the fluid at the point of contact of air-water-glass will create an upward force that will make water rise in the tube until the weight of the water column balances the upward surface tension component.