Edited by me for focus.
I think it is quite likely that Sarah misjudged her safety level, but my view is that most people are doing this every time they venture out.
The "default setting" for pedestrians where I live seems to be "earphones in, eyes down". Walking towards someone, and they towards me, I regularly come within a foot or two of that person before they realise I am there, even in broad daylight. Approach this same person from behind, and their situational awareness is zero. All of which fills me with a sense of dread in Sarah's case.
To be clear, we have absolutely no idea if Sarah was "earphones in, eyes down". And everyone, man or woman, should have the right to not be attacked as they walk down the street.