It's an outdated theory that assumed that solar systems (i.e. planets) were very rare and were caused by two stars passing so close to each other that they pulled matter out of each others substance....
First there was the sun, a giant nuclear fusion system. This early sun was of course victim of collissions with other bodies of different sizes and masses. Sometimes a body had dimensions of mass and...