The Moon seems more strategic than Mars on the short term, and it's easier to get there, so it make perfect sense to get to the moon.
Exploring Mars sounds exciting, but having a permanent Mars colony or city is a waste of resources. Mars is a cold, toxic desert with an extremely thin unbreathable atmosphere. So let's visit and study Mars, but let's not bother trying to live there.