Its tail discharges electricity into the ground, protecting it from getting shocked.
Its long tail serves as a ground to protect itself from its own high voltage power.