I don’t assume anyone is a javascript programmer by choice really but anyway. Of course it matters; if you want to be in the office, why count your travel hours? Your choice. If you need to be in the office, that’s another case.
You are missing the point: it is endemic to the culture. It has nothing to do with personal choice. It's like blaming a sexual assault victim for what they wear: that's not the issue, it is toxic masculinity that is the problem, e.g., the culture, not the individual incident.