Because they’re using the wrong resource to solve the problem.
If you have homework, it’s because a teacher is assigning it to you. This means you have a teacher, and the teacher should be your first resource.
If you’re struggling with your homework, the teacher needs to know, so that he or she can offer extra help and evaluate you on your effort. Further, you’re paying the teacher to teach you—why come here and ask for help for free?