South Korea's president said the rescue of the two from a collapsed mine was "truly miraculous".