It contributed to their deaths in the same way covid contributes to the death of someone with underlying conditions. Or what, will you say that it was the underlying conditions that killed them, and not covid? ;)
We are pretty sure that Covid caused the vast majority of those excess deaths