When lightning strikes the sea, the electricity spreads out rapidly across the water surface and dissipates. Since water is a conductor, the charge disperses over a large area, reducing the current density to levels that aren't lethal to most fish. Fish deep underwater are further protected as the current primarily affects the surface.