The pontiff had remained surprisingly active despite twice nearly dying in respiratory crises earlier this year.