The pervasive political illiteracy in the software world runs so deep that people can say things like this with a straight face, expect to be taken seriously, and sometimes _are_ taken seriously.
I have an alternative view: that this is 100% victim blaming, a totally unacceptable worldview for a responsible engineer to hold, and a screaming red no-hire flag.