There are multiple questions asked on SO which are actually about finding an error in somebody else's code. These questions of course differ in their quality - include code, error messages, detailed explanations, sscce or not. Let's not take that into account right now.
Examples: most of segmentation-fault
The reasoning behind closing would be that, since the person is not able (or doesn't want to) provide a SSCE explaining the problem, the odds are it'll be a very simple programming mistake, most probably not useful for other people. Of course there is always a tiny chance that the person has actually encountered something very interesting, discovered a bug in a compiler or JVM.
Another problem is that the topic and contents of those questions have little to do with the actual problem, thus making it almost impossible to google if you have the same problem. Because of that we tend to do the same work again and again.
tl;dr: Should find-my-error questions be closed as a rule?