The Earth began as a gas giant, like Jupiter. Then, an explosion stripped the outer layers, leaving just the core. Without the gravitational loading of the outer layers, the Earth then began expanding.1
1. Herndon, J. M. (2013): A New Basis of Geoscience: Whole-Earth Decompression Dynamics. ⇧