I have always been one to thing that as new solar system is born with the materials that are around it those materials would slowly come together and collide with each other as they form into planets, moons and left over material becomes asteroids or comets that will still revolve around the new sun.