Borrowed from French touché, meaning “touched”, the past participle of toucher, “to touch”. The fencing use came first, where it acknowledged a hit by the opponent. English later extended the idea to conversation, where a clever reply can feel as if it has landed like a clean hit.