It turns aggressive if it has too much electricity in its body. It discharges power through its tail.
Its long tail serves as a ground to protect itself from its own high voltage power.