It turns aggressive if it has too much electricity in its body. It discharges power through its tail.
Its tail discharges electricity into the ground, protecting it from getting shocked.