why do photoelectrons emitted from a metal surface has energy distribution for an incident radiation of frequency?

The electrons absorb quanta (packets) of energy. E = hf where h is Planck's constant.