https://en.wikipedia.org/wiki/Coal#Formation: “Although coal is known from most geologic periods, 90% of all coal beds were deposited in the Carboniferous and Permian periods”
That was 300 million years ago.
https://en.wikipedia.org/wiki/Uranium#Origin: “uranium is only naturally formed by the r-process (rapid neutron capture) in supernovae and neutron star mergers”
That happened 6,5 billion years ago.
Geothermal is about 50% radio-active decay and 50% left-overs from when earth was formed (https://en.wikipedia.org/wiki/Earth%27s_internal_heat_budget: “Earth's internal heat budget […] comes from two main sources in roughly equal amounts: the radiogenic heat produced by the radioactive decay of isotopes in the mantle and crust, and the primordial heat left over from the formation of Earth.”
(extracting kinetic energy from the orbiting moon)
The fact that they’re stored energy is what makes them particularly useful, though. If we were exclusively using solar directly then we’d need to store it ourselves, or build a global distribution grid to move energy from where it’s sunny to where it’s needed.