It may be that the electrolytic capacitors in the electronic ballast needed reforming after a long period without being energised. Over time the oxide layer which provides some necessary insulation in the aluminimum-electrolyte rolled sandwich becomes thinner and thence unable to withstand the operating potential difference between anode and cathode. See:
Upon applying power then after a long period these capacitors, especially the smoothing capacitor act like a low resistance and a large current flows; IsquaredR - in a small space equals rapid heating and a pop.
As an example here are some instructions for an ABB electronic motor drives which have not been used for a while: