It's called capillary attraction.

Physics. a manifestation of surface tension by which the portion of the surface of a liquid coming in contact with a solid is elevated or depressed, depending on...