This problem is NOT isolated to boats and really has nothing to do with electricity from the boat.
"If you recall from high school chemistry, two dissimilar (different) metals, when placed in an acidic solution, will create a battery. And one metal will usually erode away as the chemical reaction progresses. The other metal may have a buildup of new material, which may be a chemical combination of the eroded metal and the acid. Since virtually all domestic water is slightly acidic or slightly basic, this electro-galvanic action can occur in any metal plumbing system.
When copper and steel pipes are connected together directly, the "battery" has a path for electrical current to flow. (This current is tiny, and the voltage is not a safety hazard.)
If the current cannot flow, because there is no electrical connection (interrupted by the plastic insulators) then the "battery" never discharges. In theory there will always be a small voltage between the different metals. The metals do not erode.
This electro-galvanic action is called electrolysis and in time it will eat pin holes in copper pipe. Dielectric Unions are insurance and well worth the money. If you had leaks at the threads did you tape them with Teflon Tape before installing?"
My father was a plumber and he never installed a water heater without a dielectric coupling. He did replace a lot of copper becase the previous installer did not install one.