I have a DH-3N70 hub which has been under water a few times without problem. The other shimano hubs perhaps don't have such good seals. If there is water in there it will take its time getting back out. Opening it up is probably the only way to dry it out.
I would guess that since the light was recently fitted there is a problem with the wiring or connections and the water is just a coincidence.