Hi
There is usually a combination of factors involved when it comes to fatal outcomes. It is the same in humans as well. Some succumb to an illness very quickly, some develop complication and a number can fend it off and will never be affected.
Genes, general health/the strength of the immune system, conditions in which guinea pigs are kept (including exposure before you get them) all contribute to the outcome.
Unfortunately for you there is a crisis in North American pet store chains with an estimated quarter to a third of piggies sold infected with URI at the point of sale; mange mites and ringworm etc. are also an issue but not yet on the scale that respiratory bugs are. These opportunistic bugs are finding an ideal environment in a highly stressed down to cost commercial mass breeding environment and then again in cramped transport and backstore conditions in which lots of frightened youngsters with their immune system still under construction are finding themselves.
We used to have a problem in the UK over a decade ago with pet shop baby URI but then the largest chain obviously restarted with new stock and there hasn't been a problem since. Then we had the same again with ringworm before and during the pandemic in the UK but the pet shop chain must have used one of the lockdowns to really thoroughly disinfect everything and start from scratch since the ringworm problem we were swamped with stopped overnight.
Unfortunately, animal welfare and trade conditions are lot looser and much less enforced where you are.
I hope that this look at the general background helps you to lay your feelings of guilt to rest. If you can't, please seek help from a pet bereavement service who specialises in helping owners who struggle to process their grieving. You should find them by googling; there may be local groups or online services. Talking is by far the best way you can help yourself. If you can't please start a diary to help unloading and to get things moving that way. Music, dance, painting or any other creative activity or walking/running or sports can be another outlet to help you.
Pet bereavement struggles are a recognised mental health condition that can affect anybody but it often affects people with pre-existing mental health issues worse.