If CPR works at all (which is only on a fairly small percentage of attempts anyway), all it does is to get the casualties heart pumping oxygen-bearing blood around their body. That doesn't necessarily restore consciousness and, on some occasions, that might not even be desirable (such as when it will be necessary for hospital staff to place the patient into an induced coma).
So, assuming that CPR has been successful, it doesn't change what hospital staff will do and the fact that the casualty remains unconscious after CPR doesn't mean that they won't recover later. (Equally, if they do regain consciousness after CPR, they might still die within the next 48 hours, as many heart attack victims do).