If you ask a question usually few, if any, people attempt to help. When you outright say something wrong, everyone will be telling you the exact solution to your problem
Some people do it out of generosity, but for some it's a special subset of passive-aggression, a way to say you're wrong and I'm better, but indirectly and deniably.
I'm pretty sure I do it for both reasons at different times and in different cases.