>So it's probably better to leave the switch alone rather than potentially causing even more harm.
More formally there's two cultural issues that the philosophers more or less refuse to deal with and instead claim inherent biological instinct or whatever.
One is we've been indoctrinated for better or worse with a deference toward specialists via all kinds of morality tales and drama. You shouldn't tell a doctor how to doctor, or a laborer how to labor, according to a zillion dramatic morality tales. Its deeply hardwired into the culture itself. Therefore its culturally wrong to mess with a railway workers switchgear unless you're a railway worker, which you probably are not. You can daydream all you want about possibly knowing how to operate railroad gear, but according to doctrine if you were a railworker, you're supposed to be pretty pissed off if some random member of the general public disrespects your entire field of employment by flipping switches. No matter your real or theoretical employment, we're indoctrinated to leave those switches alone.
The next deeply indoctrinated belief is people are conservative about what they know best. Obviously you know nothing about railway operations, or at least less than the guy assigned to operate that switch. Clearly someone who knows what they're doing set the switch that way for a reason, so if I operate that switch I'm almost certain to be doing something wrong because the guy assigned to it felt he was doing right. In part two of the classic telling, clearly the fat guy knows he's not fat enough to stop the train by lying on the tracks so he didn't jump on them by himself therefore pushing him on the tracks is just going to increase the death toll. The only people who want to upend the cart are actual experts, arrogant, or insane, at least according to cultural myth.
Its possibly in a different culture we'd get totally different results. Maybe in a video game where its "make believe" and not in our culture, you'd get different results. Someone should try these scenarios in minecraft and then compare/contrast results.