Due to the standing waves in the resonant cavity, the electrons become "bunched"; that is, their phase becomes coherent (synchronized) so they are all at the same point in their orbit at the same time. Therefore, they emit coherent radiation.