It's easy to see what a tool is designed to do. It's very difficult to see what a tool can be used for and why you might want to use it that way, let alone when you might want to deviate from that or find alternatives due to limitations or new requirements. Or when you might need entirely different tools.
We learn best when we're working on a problem. Just like going to the moon required solving a lot of problems which led to major advancements in the 20th century, going to Mars, colonizing Mars, and colonizing the moon have even more challenges.
Goals give research and development a clear purpose beyond, "I dunno, make something people want that we can sell."
Besides the obvious - large-scale terraforming - a "practice" settlement of Mars gives us an opportunity to innovate and refine practically every engineering skill, form of social organization, or general skillful endeavor in humanity's repertoire.
Metallurgy, genetics, geology, farming, medicine, psychology - all of these fields are bound to discover new phenomenon and methodologies under the constraints and conditions of an alien planet.
Not to be glib, but necessity is mother of invention. And there is no necessity as powerful as the drive for survival.
Personally I see quite a few positive things behind colonising Mars.
I think it's not about having a "backup", it's not about resources (or in a really long time) it's about the challenge.
If we can put our best engineers to solve how we re-use and recycle water, how we grow crops in extreme condition, how to control the O2 CO2 cycle (at a larger scale than on the space station), how to engineer a space craft that survive such harsh conditions we will end up with:
- technology to help our crops on earth
- technology to help with our water crisis
- technology to build sturdier structures
- international collaboration, that usually keep engineers from working on mass weaponry (The USA/Russian space program is actually motivated by exactly that: keeping the rocket scientists busy instead of working on ICBMs)
Mars just happen to be a goal silly enough that we'll get interesting discoveries and advances that I can't even foresee.
Another way to keep engineers busy and force international collaboration is to have a common threat. For that I believe the asteroid threat is both a real enough threat and a good subject to work collaboratively.