"We think the water came from the melting of nearby sub-surface ice called permafrost, and that the permafrost melting was caused by magmatic activity that still occurs periodically on Mars to the present day."

Source: Mars meteorite found in drawer reveals history of water on Red Planet