Earth is also a rock planet with a core of Iron and Nickel. Iron and Nickel are heavy and therefore dropped to the center when the earth was completely melted. Most of the rocky material is still melted and our continents float on top of it, and on top of that lies water and air. The core of the Earth is 5000 C hot, as hot as the surface of the sun.
If you put all the water and air together, you get: