If you're going to Mars, you're building infrastructure that can be reused for the 690 days of every 780 day cycle that you're NOT going to Mars. Going other places therefore has a lower marginal cost. Thus if you wanted to go to Mars anyway, throwing in a few Moon missions along with Mars is not as expensive as doing the Moon missions independently. Also, as I already mentioned, it keeps your experts employed and the public engaged.