So... There are definitely people who treat the site like a code-writing service.
There are students - freshly-minted every year - who never got the message that the expensive education they're selling their souls for isn't gonna pay for itself if they don't learn anything. They're desperate to pass a test or complete some assignment, driven by that white-hot blinding fear that only comes with realizing far too late that you've made a terrible mistake.
There are working programmers whose sole on-the-job training is "this is Stack Overflow, your deadline is Friday". Their livelihood, their literal daily bread, depends on getting someone to do for them what they cannot.
Near as I can tell, both groups are relatively small, dwarfed by the ranks of well-intentioned but inexperienced students and workers... Though this minority often makes up for what they lack in numbers with raw cussedness. Almost everyone else has options - they don't have to ask questions here, they can ask friends, classmates, co-workers, they can do their own research, maybe even read their textbooks.
So any time you see one of these questions, you gotta ask yourself: is this someone who just needs a bit of friendly guidance, or is this a dangerously desperate individual?
At least, you should be asking yourself that if you want to do anything productive with your time. Because... I don't think I've ever seen anyone say, in response to such a comment,
Oh! Dear me, I honestly thought Stack Overflow was a code-writing service. Such an embarassing mistake, please accept my undying gratitude for the clarification - I'll leave straight away and find an actual code-writing service!
I don't read every comment; maybe this has happened. But... It kinda seems like these comments are more "virtue signalling" for the commenters than they are anything useful to the askers or anyone else. As Pops wrote years ago about the old "What Stack Overflow is Not" comments,
In other words, linking to WSOiN is the "I just walked five extra steps to throw away a candy wrapper instead of littering, so I've done my part to protect the environment for this year" of the SO world. It really is the least you can do.
This is just a human nature thing; people who normally put in a certain level of effort may do much less when you give them an easier alternative that still lets them feel like they've somehow contributed. I don't even mind WSOiN too much when it's used in conjunction with other efforts, rather than instead of them.
The last time I deleted one of these "code-writing service" comments, it was on a question that... was an obvious duplicate. Took me maybe a minute to find a whole pile of older questions, pick the best one, close the question, and drop a related link into the thread. I was the 4th close voter and the 6th commenter - so while a whole pile of folks were competing for the best way to tell the author that SO couldn't do what they wanted, nobody bothered to tell them that SO already had done what they wanted, ages ago, and if they'd known the right search terms they could've found it themselves.
Even if you don't believe these comments are inherently rude, the sheer inefficiency and dishonesty that rides their coattails has gotta be a bit off-putting. If you're worried about dishonest students, maybe start by not pulling the same lazy, manipulative crap that they are; if you want to help receptive askers, then focus on giving them something they can actually use.
I've deleted these comments pretty readily for years and don't intend to stop now.