Did it blast water all over your coil packs, wires, and other electrical components? That's the only thing I could see that might cause a temporary misfire casuing the motor to die and setting the CEL.
Or else it was a one in a million shot and got water into your intake.