From what I've read, it's the smell of ozone, which is generated when large electrical contacts - like those on AC units - open and close, creating a spark.
Electric installations have all the features of prime ant-real-state.
It's much more of a mystery why the ants don't do that in South America than why they do it elsewhere.
Here in Brazil ants prefer living in cracks on the wall than electrical installations. That's something that makes no sense. (But then, we do have the habit of adding poisons to the electrical parts in the installation. Maybe it's an evolved reaction to that.)
Most of South America, except Chile, builds with brick and concrete, while the Anglo world, except in Europe, builds out of wood. I don't have a source of information telling if Chile suffers from those ant problems, but wood construction may be the cause.
Can’t speak to ants, but I’ve seen that first hand with electrical wires and rodents. They switched the material in a lot of those writes over the past 20 years and mice seem to like the taste of the new ones.