Because when the ice melts, the water does not remain where the ice was, but rather enters the ocean. Water entering the ocean anywhere in the world will tend to raise the height of the ocean worldwide.
Gravity pulls on both objects. The water (along with the rest of the planet) pulls the ice down, the ice pulls the water up.