Visible light photons have more energy each. The shorter the wavelength, the higher the energy of the photon.
Light with a short enough wavelength (UV-B, for example) has enough energy to damage the DNA in our skin and increase our risk of skin cancer.