Because water is conductive (unlike air), the electricity spreads out, so that far away not enough energy is concentrated in one point to kill a fish. (A fish right next to the lightning strike would still dies though.)
If fish are near the surface they do die. Salt water is a really good conductor and spreads the charge out quickly. This means that any fish that are lower down aren’t badly affected.
Comments