The moist air becomes dry in presence of silica gel because the water molecules present in air get adsorbed on the surface of the gel. Silica gel adsorbs moisture from air via adsorption, thus protects the instrument from water corrosion (rusting) and/or prevents malfunctioning.
So, both assertion and reason are true and reason is the correct explanation of assertion.