If the impetus for the experiment was to test some potential attack vector as the grandparent post suggests, would you rather they didn't risk some catastrophic attack? It's the notion of "the greater good" and all that.
In writing this, I seem to have discovered my own answer. This is largely similar to the NSA going beserk as it has done because, "What if?". So do you want to risk & sacrifice for ostensibly better security?
They shouldn't have done it at all. But even if in some twisted world they needed to, they could have warned everyone and come up with ways to protect hospitals.
In the railway scenario, you know you'll save 5. In this case, they were just experimenting to see if a certain attack was possible. Avoiding the experiment would not have resulted in any deaths.
They probably argued that the test was more like surveying defenses than an experiment. i.e. "we need to try it because we need to know if we should be concerned about the Soviets doing it with seriously harmful bacteria."
Additionally, when you do anything involving a group that large there's bound to be an few outliers. Winning the lottery, getting bitten by a shark and dying from complications caused by normally harmless bacteria are all incredibly uncommon but they still happen.