This is because its density increases. In a liquid, the density decreases, allowing it to stay on top of another substance. The liquid cools as it rises away from the core, and gets closer to the crust. The loss of temperature makes it more dense than the liquid.