Two possible reasons for doing it:
- Avoid information leakage (such as references or other special values) by returning a true value that has no relation to the actual value being tested.
- Avoid large memory allocations that would result from returning long strings.