This might have very specific utility, but there are also legitimate reasons to provide invalid domain names in posts.
For example when sharing configuration here on meta you may not wish to publicly share the address of your instance. It’s also pretty common to share examples of URL structure against generic or nonexistent domains.
That sounds like a very specific set of circumstances, could you share any more?