I think the prevailing opinion is that 65 million years ago a giant meteor hit earth causing drastic climate change and the dinosaurs couldn’t survive the change.
Think about how much food they needed to live though.
So what I remember learning is that the comet that landed and created that huge crater caused a bunch of stuff to kick up into the atmosphere and block out the sun (nuclear winter) causing an ice age resulting in all of the dinosaurs dying.
I think @ThePickinSkunk 's idea is more fun. I’m gonna deposit my own possible idea: they were abducted by aliens right before extinction and are on a zoo in Mars right now.
Well those zany rascals grew to be too big for their britches so God himself yelled down, “I’m sick of your guy’s ■■■■!” And then he zapped a huge meteor down to kill them all.