Here's why:
* The inner core is solid. It's mostly iron and nickel, and the immense pressure keeps it solid despite the high temperatures.
* The outer core is liquid. It's also mostly iron and nickel, but the pressure is lower, allowing it to exist in a molten state.
* Magma is molten rock found within the Earth's mantle. The mantle is the layer between the crust and the core.
How magma forms:
* Partial melting: The upper mantle is mostly solid rock, but it contains small amounts of melted rock (magma). This melting occurs due to:
* Heat from the Earth's core: The core's heat slowly warms the surrounding mantle.
* Pressure changes: When tectonic plates move, they can cause pressure changes that lower the melting point of rocks.
* Water content: Water from the Earth's surface can seep down into the mantle and lower the melting point of rocks.
In summary: Magma forms within the Earth's mantle due to a combination of factors, not from the core.