Electrons accelerate from the cathode to the grid; every time one reaches the excitation energy it can lose it to an atom.