In a spark plug, the electrons are emitted from the metal surface due to the strong electric field, causing them to overcome the work function of the material. This process is called field emission, which is the emission of electrons under the influence of a strong electric field.
This type of emission occurs when a strong electric field is applied, causing the electrons in the metal to be pulled away from the surface without needing thermal excitation.