Answer:
They were produced by stars that lived and died before our solar system was born.
Step-by-step explanation:
According to what it's understood today, all elements heavier than hydrogen (including helium and excluding some that were created in laboratories) are created through nuclear fusion in the core of stars.
They start fusing hydrogen into helium, then as the star grows older helium is fused into beryllium and so on for all the periodic table.
So as far as science understands it today it's a literal truth that we are made of stars. (as almost everything else)