Mars has no magnetic field. Solar wind blew away the atmosphere and with it the water.
https://www.youtube.com/watch?v=tRV1e5_tB6Y
There is no wind on the Sun