Why can't we detect water on Mars in the same way as in exoplanets?
We can look up for water in the atmosphere of the planet, not at the planet itself. We can do that when a planet passes in front of a star. That tehnique is called transmission spectroscopy.