Formation of Atmospheres
nThe outer planets collect gases from nearby.
nThe inner planets lose this sort of gas due to heat of sun & less gravity.
nThe inner planets get their atmosphere from inside as the planet heats and loses its volatiles originally adsorbed on dust & ice grains.