Note that protecting the company from being sued can mean protecting you. For example, a harasser might be fired to avoid a lawsuit. But you hear stories about HR people putting the company in legal jeopardy (e.g. not firing a harasser) due to their own bias, laziness or in-company relationships.