You only have to look at the Nuremburg trials for your answer here. We are social creatures, and following along with the "pack" (which includes following orders from authority) is a very powerful force.
Further, it's not just pack mentality but also the institutional and structural directive. The authority of your supervisor, and the greater authority of the institution and 'the good of the country'. Anarchists have been talking about these problems for a while.