Both sinned. What we don't know is if they repented and asked for forgiveness, vowing to avoid the sinful behavior.
If this Nun is so compassionate about the flesh of this man, and unconcerned about this dying person's eternal soul, then I would question how concerned she would be about her own flesh and spirit.
True and each person is responsible for their own behavior, sinful or otherwise.