Ice melts when placed outside the freezer because the temperature outside the freezer is warmer than the freezing point of water. When ice is exposed to temperatures above 0 degrees Celsius (32 degrees Fahrenheit), the heat from the surrounding environment is transferred to the ice.
The temperature of the ice rises, causing the ice molecules to gain energy and move more rapidly. As a result, the ice undergoes a phase change from a solid (ice) to a liquid (water). This process is called melting.
The melting point of ice is 0 degrees Celsius (32 degrees Fahrenheit) at standard atmospheric pressure. So, when ice is exposed to temperatures higher than this, it will melt and turn into liquid water.
The same principle applies when you take ice cubes out of your freezer and leave them at room temperature or outside on a warm day. They will melt due to the higher surrounding temperature causing the ice to absorb heat and transition into water.