Why are the temperatures of the melting point of ice and freezing point of water the same i.e. why ice melts at 0 degree Celsius and water to freezes at 0-degree Celsius?

Why are the temperatures of the melting point of ice and freezing point of water the same i.e. why ice melts at 0 degree Celsius and water to freezes at 0-degree Celsius?