The energy isn't the big CO2 source in aluminum refining. You heat up the aluminum oxide until it is molten, put in a carbon electrode and run current through it. This results in the chemical reaction 2Al2O3 + 3C -> 4Al + 3CO2. Well, what do you know, CO2 is released. Unless you can capture this or have a carbon neutral way of producing the carbon anode out of atmospheric carbon, this isn't a way of reducing the carbon footprint of driving.
But since carbon is a good thing it’s okay.