We shouldn't and don't. In fact, if someone is making you feel unsafe at work (especially if it's because of your gender, race, etc), HR has a responsibility to address it.
HR has the responsibility to protect the firm from legal dangers, so don't be surprised if their solution involves the plaintiff being fired.
Retaliation in response to a complaint exacerbates, rather than mitigates, the legal danger to the firm.