Here's my understanding:
When there is a value, the code should say, "find records where the field is this value". When there is no value, the code should say, find records where this field is NOT any value. i.e. the negation of  [* TO *].

Therefore when the value is empty we negate the "find any value" to make it find no values.