That makes a big assumption that all pandemics are not 100%. A total extinction event could be something else: long-lived radiation beam or large impact. Furthermore, some event need not kill all humans but only enough to allow another species room to master its environment and begin to develop technologies.