On wet nights, they climb up to avoid drowning and predators. Then
they seal themselves in to prevent drying during the day and that
sticks them to whatever they're on. By nightfall, they will awaken
once again and if it's not too wet, climb back down.
Which reminds me, my neighbour just started saving used bamboo
skewers. She uses them to pick up slugs. ;P