Depends. I’ve seen all sorts of reasons for Krypton’s demise. Zod fucking shit up, Braniac fucking shit up, Rogal Zaar allegedly fucking shit up, the sun exploding, the planet collapsing due to being mined hollow, the the planet exploding due to instabilit, and so on.
At this point, I’m not even sure what the specifics are in modern canon. Krypton always does, but it tends to vary as to how exactly. What is the current, modern explanation?