Because if the meduim has bound states (the ground and excited states), it reflects and transmits non resonant frequencies in a "normal" way.
Closeness of the incoming wave frequency to some resonant transitions in the medium makes reflection and transmission "anomalous" processes, with active other channels of "dissipation" of the absorbed incident wave, rather than just slight polarization of the medium in the former case.