As electricity builds up inside its body, it becomes more aggressive. One theory is that the electricity buildup is actually causing stress.
It turns aggressive if it has too much electricity in its body. It discharges power through its tail.