What cosmic phenomenon is directly linked to the observed abundance of heavy elements in modern stars?

Answer

The continuous, episodic mass loss events across cosmic history

The material that forms new stars and planets is enriched by the products returned to the interstellar medium via mass loss events from previous generations of stars, explaining the presence of elements heavier than hydrogen and helium.

What cosmic phenomenon is directly linked to the observed abundance of heavy elements in modern stars?
astronomystarradiationmassLoss