Aside from advancing tech...
What will manned missions to the moon and mars accomplish that can't be accomplished by cheaper robots?
Because last I checked currently there are still two robotic platforms on mars, one still roaming around doing tests....years and years after they got there. Robots that came at a tiny fraction of the cost of one shuttle mission.