Why does ice cream melt out of the refrigerator?

Because the room is not cold enough to keep the ice cream frozen.
WARNING! DO NOT REFREEZE ICE CREAM IF IT HAS MELTED! OTHERWISE YOU MIGHT GET FOOD POISONING!