It all has to deal with dew point and temperatures. A can of soda may sweat when taken out of a refrigerator in a ambient of 75 F and 70 % RH, as in the summer, but if you take the same can of soda out of the refrigerator in a 75F ambient with 5% RH, as in the winter, it won't sweat. The surrounding air drinks the moisture.