There might even be strategy to yelling at folks. Instead of wasting energy in a team to deal with those folks, sometimes pure guilt or intimidation might make them make a mental mistake. Then the non-worker just took care of themselves without anyone else spending any energy.
I mean, swearing or being belligerent isn't necessary and might get you in trouble, but otherwise peer pressure is on the receiver to decide against acting upon.