It’s important to understand how thermodynamics works.
The state of “cold” is a state without heat, so when removed from a freezer, the ice is exposed to heat. Heat always moves from warm to cold, so heat from outside of the ice moves inside of it, causing it to melt.