Why are ants attracted to electricity? There is general consensus that when fire ants and other ant species get shocked, they release pheromones that attract other worker ants to the site. ... To keep fire ants out of electrical equipment, seal all sensitive electrical components, especially those that are not insulated.