Why do worms come to the surface after rain, if many of them die outside?

A terrible thing is a downpour in the village. In the dead silence under a gloomy gray sky, worms, as if raised by an evil necromancer, emerge from the ground by the hundreds, filling the roads, highways, and paths. These…