Why ?
Why didn't it just stay there ?

Atmospheric pressure on earth's surface is 101 kPa. Atmospheric pressure on Mars is 0.61 kPa. As you can see, at 0.61 kPa, liquid water (purple) basically can't exist. Below about 0 degrees C you have ice, above that you have vapor.