Much of it resulted from volcanoes blasting out gases like carbon dioxide and water vapour, which allowed ice (also a mineral) to form near the poles of Earth, and possibly on Mars too.
Since rising air causes clouds to form (the risen air eventually cools to the temperature of its elevated surroundings, and any water vapour it contains thus condenses), the result would be more rain than would fall in the absence of the artificial aerosols.