Source of interior heat
If the earth formed out of a dust cloud by gravitational attraction of the parts of the cloud for each other, then the formation would generate a lot of heat. The earth may be cooling down from that formation.
Also we observe that there are radioactive decays happening, and they also generate heat.