A community shaken by an act of deviancy wants reassurance that moral order has been restored, and a perp walk accomplishes this much more quickly than the courts can.
Even though extras were waiting for several hours to go on screen for the perp walk scene, several were simply happy to have the chance to participate.