There is electric power going through the drive, this is what is causing the problem.
I’m not sure what you mean by “earthing cables”. Boats have two systems, the grounded and the grounding, sometimes called the battery negative and the bonding system. These two systems are usually connected...