==The original population stayed mostly unchanged and other trilobytes were outcompeted by the unchanged population.
Apparently the outcompeted themselves into extinction. How does that fit into evolutionary theory again?
Their ecological niche eventually changed. Perhaps it was quick, perhaps slow. Perhaps another organism had a population explosion and competed them out of their niche.
Evolution doesn't absolutely guarantee the success of one species in any niche.