"Lots of things can happen to wipe off all life on a planet. Meteor strike, supernova, shift in the magnetic polarization of the planet, catastrophic climate change, and that's not even counting outside forces like Klingons, Romulans, or the Gorn." She shrugs. There were loads of ways for civilizations to go extinct.
(CW: multiple extinction-level events)