The birth of a star is a mysterious process.
Hydrogen gas pulls into a tight knot to build the star. A swirling flat disk of dust and gas circles the forming star. The disk is clumpy and stormy. The clumps have gravity that pulls in more dust, and they grow until they become planets around the star. Scientists don’t know for sure if all stars have planets. However, it seems unlikely that only certain kinds of stars would have them.