You think the physics of planet formation in our galaxy was somehow magic or something?
The evolution of intelligent live requires far more than "planet formation". The more we learn about Earth's history, the more we realize how long the odds were. First you need a rocky planet in the habitable "goldilocks" zone. Those are common in our region of the galaxy, but are likely less common further out, where there is more hydrogen/helium and fewer heavy elements. Then you need liquid water. The early earth was too hot and small to hold on to water (it lost almost all it's neon, which has about the same molecular weight). So the water came later, from comet impacts. But if you have too many big gas giants, they will suck up all the comets, and you end up with a desert planet like Arrakis (but without either worms or molecular oxygen). Too few gas giants, and you get too many comet impacts, which form a global ocean hundreds of km deep, like Europa. A ocean that deep has no upwelling, so the nutrients sink to the bottom, where there is no energy other then volcanic vents. Even if you get the water level right, too many comet ELEs can wipe out species before intelligence evolves. To few ELEs, and life stagnates, as species evolve into narrow niches.