Origin of heavier elements on earth?
Different types of stars are responsible for creating different groups of elements via nucleosynthesis. Most of the "lighter" metals (Na, Al, Ga, Ge, Se), were formed by exploding massive stars, and most of the "heavier" metals (I, Ir, Ag, Au, Pt, U, Pu) were created by merging neutron stars. Exploding white dwarfs are partially responsible for elements like Ti, V, Cr, Fe, Co, Ni. Dying low mass stars were involved with the creation of some of the elements Sr, Y, Zr.

The following periodic table of elements (from Wikipedia), shows the elements color coded according to their source of creation.



All the elements on Earth were created by various stars that seeded our region of the universe prior to the formation of our solar system.