Terrestrial planets formed where only dense materials could condense, which doesn't apply for jovian planets. That's why they're rocky and small while the ones that couldn't condense dense materials are large and gaseous and found further away from the star