Electric transformers explode due to overheating and overloading.
When too much electricity runs through the transformer they overload and overheat and then it explodes and catches fire.
Too many air conditioners running at the same time on the same transformers can overload and tax a transformer too.
Age is also a factor. The older the transformer the more likely the insulation around the copper wire in the transformer is to break down and cause shorts.