The main point is that the condenser is a cooler temperature to permit condensation of the volatile gases. When the solvent is removed from the sample, it essentially boils under the reduced pressure, so the solvent is removed as a gas. The condenser cools the gaseous solvent, which returns it to its liquid phase. The solvent can then be “trapped” as a liquid.