"The exception that proves the rule" does not mean that an exception confirms a rule in a logical sense. Instead, it originates from legal and linguistic contexts where an explicit exception implies the existence of a general rule. E.g. a sign that says "No parking on Sundays" implies that the rule is that parking is fine on other days.
For years I didn't know. Finally. Thanks!