A sudden downpour is often seen as something to avoid, but science suggests it may offer unexpected benefits.