While seeing the derivations of the Rayleigh Jeans law and the Planck's Law for a Blackbody Radiation, I came across a fact that they assumed that Electromagnetic Radiation inside a cavity would form standing waves only.
Why is it that the blackbody radiations inside the metal box should be a standing wave only in the derivation of Rayleigh Jeans law and Planck's law?