Why did the outer planets keep most of their original gases, but the inner planets did not?