In photocatalytic reactions, the energy of the photons must be sufficient to excite electrons in the catalyst. This excitation leads to the formation of electron-hole pairs, which drive the reaction. If the wavelength is too long (low energy), it won't excite the electrons. If it's too short (high energy), it might cause unnecessary side reactions or degrade the catalyst.