It was "the surge." Mark arrived in the hospital barely hanging on to life, and the docs were sure he was on his way out. But then he had an apparently miraculous recovery, coming back to his chipper self.
But it turns out that was something called "the surge," when a patient on the edge of dying has a last surge of energy. They seem back to themselves, and take the time to say, essentially, goodbye, sharing the important things.