They didn't go extinct. Today we call them birds. Most dinosaur species went extinct, though, by the end of the Cretaceous. No one is sure why, but likely had a lot to do with whatever celestial object made the Yucatan Crater.