"the first time any man's* freedom is trodden upon, we're all damaged."
I prefer to assume that -- like in the episode (Picard and Tarses)-- only "men" were in danger, so a gender-specific term was justified in the fictional case from which the quote was derived.