I am somewhat with the anthropic principle however I wasn’t really pointing towards that in particular.
I was talking about the odds, the chance of Earth getting hit again by another extinction event asteroid. Earth’s had four or five extinction events in the 4.45 billion year existence of earth (as determined by radiometric dating). The moon has some impressive cratering. We have erosion and could have had similar instances of cratering, so we’ll never know, but the moon provides a good modke of note.
Also, as The Milky Way travels through space we are coming into areas of space that the Milky Way has never been in and there’s no telling what kind of debris is out there waiting for us to come across its path or vice versa.
But I’m betting on volcanic, seismic activity, tectonic plate subduction, inevitable weather... Before a sizable asteroid strike. Given the amount of time involved and the amount of space we travel through and the amount of debris in that space. It has to be close to inevitable.
When? There are geological markers.
We also have a couple of gravity wells - Jupiter, Saturn, Uranus, Neptune covering for us.
You are committing a very basic error in thinking - probably due to a lack of expertise in the field of Astronomy. I.e., you are suffering from the "Anti-Proximity Bias."
Intergalactic space is extremely rarified (i.e., interstellar space is virtually empty), and the distance between galaxies is immense. Even galaxies themselves have an extremely low density; galaxies can quite easily pass through one another without much disturbance - at most resulting in gravitational perturbations (Astronomers have photographic evidence of this). Interplanetary space is dense, by comparison - but it is still not at all like the "asteroid field" you saw in "The Empire Strikes Back." The risk of collision can be safely ignored.
You are greatly exaggerating the hazard posed by distant objects; conversely, you are understating the danger posed by near objects.
The Earth will undoubtedly be struck again by some celestial object, resulting in another mass-extinction event. In all likelihood, that celestial object will stem from our own Solar System (prob. Oort's Cloud).
Additionally, there are other risks: Nearby supernovae, volcanic activity, etc.
Regards,