Perhaps because they were lucky? What they needed was available for millions of years. Note the survivorship bias there. I am sure you already know it, so please excuse me pointing out this obvious thing.
An adaptable organism might stay around for longer - or it might be outcompeted in the short term by less adaptable organisms.
Sure, “survival of the fittest” in the short term is obvious, but it’s hardly worth pointing out.