It works this way:
The other end of the cavity is narrower, thus the speed of microwave photons is slower there. The photons kick that side of the cavity less than the wider side.
The other end of the cavity is narrower, thus the speed of microwave photons is slower there. The photons kick that side of the cavity less than the wider side.