Why is the Earth Core Hot?

There are a few reasons why the earth’s core is so hot. Friction is one reason. Core materials goes to the center of earth. Second reason radioactive elements decayed finds it’s way to the core.