system
Given the following post, respond as if you're commenting on Reddit:
human
Why is the absorbtion spectra from stars not cancelled out by re-emission?

I have done some googling on this topic but I haven't found a definite answer. I know that atoms in stars can absorb photons of certain wavelengths and that these atoms can re-emit these photons. So the answer I usually read on this particular question is that while the light from the sun has to travel in a certain direction to reach the earth, the photons of a particular wavelength can be absorbed and re-emitted in every possible direction so that the amount of photons from that particular wavelength that reaches the earth is less than the other wavelengths. So here's my question: While the above is true for light traveling through a small region of a star, there have to be other regions in the sun that would send their light to a different part of the universe than our earth but their absorbed and re-emitted light can also be scattered in all directions so some of that light could be re-emitted in our direction when it otherwise wouldn't (without absorption and emission). So wouldn't all these regions cancel each other out? We receive less light from a particular wavelength  from a certain region from the sun, but we also receive some light of that wavelength from other regions of the sun that don't send their light of "normal wavelengths" to us? If this wasn't true, where would these photons go? They can't just dissapear right? What am I missing here?
gpt
A bunch of photons of a certain wavelength come out of the sun directly toward us, but they hit some atoms, get absorbed and emitted again in all directions. 40% of them go back into the sun and the others get shot off in other directions. Often into other atoms.

As they bounce around they change energy until they aren't in that part of the spectrum anymore.