The graphite[carbon] anodes are continously replaced during the electrolysis because :
(a) The oxygen evolved at the anode escapes as a gas or reacts with the carbon anode.
(b) The carbon anode is thus oxidised to carbon monoxide which either bums giving carbon dioxide or escapes out through an outlet.
2C + O2 → 2CO [2CO + O2 → 2CO2 ]
(c) The carbon anode is hence consumed and renewed periodically after a certain period of usage,