Didn't much care for it, but I seem to recall that Platoon did a pretty nice job of covering the mindset that went into it. Several different factors involved, including groupthink and a deference to authority. Every once in a while we hit on examples here and the same sorts of discussions occur regarding culpability of the mob doing something shitty. Usually it involves a gang-rape in a highschool somewhere.