You don't know what happened.
Maybe he started mouthing off.
It could be something he said too, not just the slap.
As others have pointed out, they don't like farangs with superiority complexes running around like they own the joint. Still the beating is vicious and unwarranted. But human emotion is what it is.