Apart from the premises of the question, how same question (about the unreasonable thinking) applies to a classroom teaching:
Imagine two teachers who both frequently makes class participate by asking questions like "Does anyone know the answer?"
When students in classroom raise hands they might know or not know the answer, or hit the point anywhere between. Lets focus on the "not so right answers" that are picked.
Teacher One would approach it with the "dummy of shame" approach. If the answer is not correct, or very close to correct... The student is ridiculed with "How poor answer, shame on you."
Teacher Two would approach it with encouragement. When the answer is not correct, everyone are encouraged with "Good answer, it explains X and Y about the question but there is more." (then continuing to explain it, not asking anyone to "correct" the first answer because it would create competitive environment.)
Now think which one of these teachers have more hands raised when asking question like this. Teacher Two creates an environment where everyone can participate without fear of not fully understanding it.
This can be applied to original question. In team programming everyone are participating, which should be encouraged. When memory leak bug is found, like another reply stated, making bug creator fix it by offering support creates learning experience and lead to less such mistakes made in the future by this programmer.
It is also more likely that everyone are more willing to participate and work as a team, not working as "pack of competing predators".