Electromagnetic railgun: why all the smoke and fire?

I think you are overestimating a little bit, 32 MJ is only 9 kWh. That would only take about 5 hours maxing out a 15 A circuit. Though I suppose 5 hours or a week to reload would be effectively equivalent in combat.