Well even though you didn't know the person, talked to them, or etc. their life and whole being impacted your life or someone's. You just feel the same emotions and sadness as if you lost someone personally.
The uncertainty of the direction by which these relationships exist indicate the importance of remembering the principle of correlation virus causation.