It turns aggressive if it has too much electricity in its body. It discharges power through its tail.
If it stores too much electricity, its behavior turns aggressive. To avoid this, it occasionally discharges excess energy and calms itself down.