Why do Worms Come Out in the Rain?

Worms come out in the rain because water infiltrates into the soil and fills up their bore holes. When their holes fill up with water, the worms start to drown, so in trying to stay alive, they come out of the ground to get away from the water.