It hardly matters that the apocalyptic Earth is more hospitable to human life than Mars currently is if we don't have any humans left to resettle Earth.
Even if a huge asteroid hit, we could almost certainly build shelters where more people could survive the initial impact than we can settle on Mars in the foreseeable future.
An analogy: a bunch of important files become corrupt (cataclysmic event) and the domain expert is no longer with the company (loss of knowledge and industry). It is much easier to move forward if one has a way of contacting a subject matter expert (Mars colony) to restore or rebuild what has been lost.
I believe we also need a colony to hold on to seeds of civilization in the very sense of the word.
It's like making a backup of your computer but never testing restore. The chances of that backup not being complete or recoverable are fairly high.
The backup of human civilization on Mars will probably be theoretically worse than one that can be made on Earth. But it will be supporting life, making it fully tested and thus practically better.
We might not colonize a neighbouring star system in the near or medium term future but I am convinced that if we do not start moving out into the solar system, we never will go anywhere else either.
Mars has no fossil fuels, so that can't be it. Minerals cant really be destroyed or exhausted. Technological knowledge is much easier to preserve from cataclysmic events on Earth than it is on Mars (if we fall under some kind of technophobic super empire that seeks to destroy this type of technology, that will as easily spread to Mars as to the rest of the Earth).
If our low earth orbit space gets too full of debris, we become stuck until we can find ways to clear it out.
But no doubt they will say: use broadcast power.
I'd like to see a system that, allowed to order any stock catalog item on Amazon or Digi-Key, could self-replicate.
Sure, temperatures would go down (but nowhere near as cold as Mars) and it would be hard to harvest plants, but we would still have fossil fuels to generate electricity for grow rooms, and we would still have earth soils that are ultra-rich in nutrients. The surface would be nowhere near as radioactive, so people could still work outside, allowing mines and so on to keep operating as today.
Overall, while it would be a huge tragedy, kill billions, and destroy our civilization as we know it, it would still leave the Earth as an absolute paradise compared to Mars.
What could happen to the Earth that would make it even close to as inhospitable as Mars?