The answer to this question is the second one: Mass extinction, and this is because, throughout the history of our planet, there have been geological events, such as meteorization that have produced the different phases of the soil, and corresponding to each layer, there's a geological time associated, and in hence, a particular fauna and flora.
If only in a particular layer we can see those species, there are high probabilities of that being because of a massive extinction.