or huge asteroids.. The Key is a system with gas giants, they tend to protect Earth like planets..
Or a binary system like A.C.
The big moon and the collision that formed it may be key, too. And that’s what may be very rare, if not unique. It moderates the Earth’s rotation, protects the Earth from some impacts, and the collision that formed it may be why we still have our magnetic field and why the surface and atmosphere have the composition that they have. Venus underwent a similar impact at a different angle that set the planet rotating slowly in reverse, didn’t give it a large moon, and may have sucked all of the free oxygen out of the atmosphere, binding it with iron and other elements.