Wet electrons/ leak path into the ignition wiring. Does it rapidly get all better when the out of the rain? There's also more moisture, allowing for carburetor icing, which I presume is a possibility though carb heat can also decrease engine power, but if there is ice most of the power will return when it is melted.