Your body tends to burn more calories when your ambient temperature is constantly fluctuating as compared to when it is stable. This is because your body requires adapting to the internal temperature for matching it with the temperature surrounding the body. The body burns calories to maintain a stable body temperature and since now it requires lesser calories to do so, the additional energy is stored in your body as fat.