Question: why are terrestrial and jovian planets different?
Answer: While terrestrial planets accreted from planetesimals made of rocks and metals, they ended up too small to capture significant amounts of the abundant hydrogen and helium gas in the solar nebula. The jovian planets, however, formed farther from the Sun where ices and rocks were plentiful.