# Photon absorption in a medium - basic principle?

I am trying to understand the basic physics of photon absorption in a medium. Take the example of oxygenated hemoglobin (red curve). Clearly at different frequencies/energies relatively more or less photons are absorbed.

My very naive question is, how is this a continuous spectrum when there is a discrete number of energy levels where a photon can be absorbed in a medium?