I thought it was a stupid move also. These guys are headed to a combat zone somewhere at some point in the near future. And while I am no war strategist, I would think humiliating Soldiers before they go off to war is a bad move.
Patton slapped a few malingering soldiers IN a war zone.