The inner core is solid because the inner core consists of a lot of pressure and high temperatures. And the more pressure and high temperatures the more dense the substance gets.