Earth was definitely not heated to this state from a cold condition. It was cooled from a very high temperature and also very slow rate to this state.The question is what are the possible causes for this cooling?
A Geo-Scientist can answer this question