Original: Less dense materials remained on the surface and cooled to form a solid rocky crust (outside layer).
Simplified: Less dense materials stayed on the surface and cooled to form a solid rocky crust (outside layer).