Dear student,
Since graphite has total four electrons in its outer most shell out of these three are bonded by other carbon atoms and one electron is free which can be used to conduct the electricity , hence it is used as electrode very frequently.
Regards