As the molten ball cooled, the outside hardened like candle wax and formed a crust. The mantle, however, still maintains some of that heat and continues to cool.