Answer:
Although the inner core is very hot, it is solid because it is experiencing very high pressure.
The outer core is not under enough pressure to be solid, so it is liquid even though it has a composition similar to the inner core.
Step-by-step explanation:
The state of matter (solid, liquid or gas) of a given material depends on its temperature and pressure.