The sun contains a LOT of matter other than hydrogen. Much more than all the inner planets combined. It’s just that the sun is, well, massive so the proportion of hydrogen to other elements is very high.
The inner planets do not have enough mass to hold on to their hydrogen, so what’s left is mostly heavy elements.
The outer planets (especially Jupiter) do have enough mass to hold on to hydrogen, so they are more similar to the composition of the Sun. Jupiter can be viewed as a failed star. Many star systems are binary, and Jupiter would have been the “other” star in our system if it were (considerably) larger.
Latest Answers