The Covid jab doesn't necessarily stop you getting the virus but without it your mother would be much more likely to be seriously ill. She was obviously already in hospital for another issue not related to Covid but I would take comfort from the fact that she has the extra protection of the vaccine.