Its long tail serves as a ground to protect itself from its own high voltage power.
As electricity builds up inside its body, it becomes more aggressive. One theory is that the electricity buildup is actually causing stress.