The solar system pulled itself together
with its own gravity,
from a cloud of atoms and molecules
blasted out of a cluster of supernovas.
Some of those atoms were so radioactive
from the element synthesis in those supernovas,
(aluminum 26, with a half life of 700,000 years, for example)
that their energetic decay
kept the Earth molten
for millions of years longer
than it would have been
without that energy source.
If that isn't a pretty fair description of "by chance",
I don't know what would be.