Think about cooking oatmeal. When it gets hot, it bubbles and the top moves and separates. The same happens to the earth.