The entropy increases whenever heat flows from a hot object to a cold object. It increases when ice melts, water is heated, water boils, and water evaporates. When gas is dissolved in a liquid like water, the entropy of the system decreases this is because upon dissolving gas molecules in a liquid, the space available to the gas molecules reduces. Water is having a higher entropy than the ice and so the entropy will prefer melting. But ice has a smaller energy than water and therefore the energy favours freezing. Therefore, as the surroundings are becoming hotter, they are gaining more energy and hence the entropy of the surroundings is also increasing.