Yes, it is very unlucky situation. Once a person gets cardiac arrest
the whole circulation stops. Even circulation to the foetus stops at that time. We don't know the condition of the baby in womb. The doctor would have assessed the condition. If it is not viable, there is no urgency for c section. By putting the patient on anaesthesia and surgery would loose a minor chance of survival of mother.
Hope she becomes alright soon.