Sometimes, you see “answers” that don't actually answer the question at all. For example, the questioner asked how to do something in Python and got a reply explaining how to do it in C# or Rust. That's just literal dross that shows that the answerer didn't bother to read the question properly. Such answers are immensely disrespectful of the questioner, and of the whole principle of Q&A sites, and getting rid of them is the best approach. (Not-an-answer is a bit different: I'm talking about the case where the answer is an answer except that it completely ignores the constraints that the questioner is working under and they'd have to change everything else about what they're doing to make any kind of use of it at all.)
A retained downvoted answer is more for showing how not to do something, and there is definitely value in that. For example, if someone were to ask about synchronizing between threads in C, and an answerer were to suggest a volatile int
, that would be a valid but wrong answer (the reasons it doesn't work are interesting and subtle) and in an ideal world the answer would be downvoted but kept so that other people can see that it is wrong.
Note that I do not mean that C# code could not appear in an answer to a Python question. There are bound to be cases where it is useful, even excluding true polyglot questions. Skill and judgement are required, not mechanical rejection. That's a great reason why deletion is generally an ability guarded by a high reputation requirement; it's a proxy for demonstrated judgement.