The early solar system was an extremely violent place
Explanation:
The early solar system was a violent place: it wasn’t just asteroids, but whole planets that veered on strange courses. When most of us learn about the solar system, it seems like a pretty well-ordered place. Our Sun formed first, about five billion years ago, and the planets appeared a little later. It was a from the chaos in the solar system that an orderly planets which moved in orbits appeared.
Any star system is basically formed due to the vast disk of gas and in the epicenter if the disk is the baby star formed. The star absorbs the majority of materials from the space in its disk but there are some remains too. These remnants coalesces into dust grains which becomes pebbles and as the time passes by it grows dense into boulders and into huge gigantic planets. This is how planets formed and according to physics, small planets have small orbits and moves closer to the sun.