The compost heap is normally covered with a tarp or plastic sheet, to prevent the rain cooling it down, since the water penetrates into the core of the compost pile. Cold outside air will cool the surface, but not the core of the compost heap. The covering prevents some heat loss from the surface to cooler outside air, and retain the heat within the compost heap better.