I have seen this happen with Hospice patients too, time and time again. They are supposed to have less than six months to live and receive only palliative care during that time. Often it doesn't work out that way and they leave hospice, return to conventional tertiary medical care and recover.
The death and dying issues are an art not a science.