If you want to go more deeply into it, you have to look at modes of vibration within the cavity. Think of these like the standing waves on a string. The higher frequencies have more possible modes, so classically one predicted that the shorter the wavelength, the greater the number of modes, and...