This is one of the reasons why chances of life in the universe other than on earth is far lower than most knuckleheads believe. About 80% of the universe is sterile because it’s being constantly bombarded by really nasty stuff from quasars, pulsars, neutron stars, black holes and whatnot.
So that leaves 20% that is not sterile. 20% of billions of stars and billions and billions of planets is quite a bit.