We
can build nuclear-bomb-proof bunkers, but that doesn't mean a survivable fraction of the population lives in them. If we had just days or hours of warning for an incoming dark asteroid, all our tech still might not save the species.
Having a Martian society existing concurrently is like the difference between saying "yeah, we could back up our server to tape" and actually running concurrent instances. Or like the difference between legislation to require eco-friendly behavior and technology that makes eco-friendly behavior more economical than the old way.
It exists not as a resource drain but as an improvement. Useful things that happen to also solve problems are often superior to perhaps less expensive things that solve the problem but might be seen as a cost center.
Also, I don't disagree that post-apocalypse, 99% of those Martian manufacturers of orbital solar collectors should hop on the next shuttle back to Earth.