16

Possibly you are labouring under the misapprehension that the number of photons is somehow a conserved quantity? That isn't true, there are more photons at any given wavelength when you are deeper into the star, because there is a temperature gradient. Cooler material further out is less emissive...