Great question.
I always thought it strange that it was against the law for someone to slap their boss in the face when he or she was being a dick, or noncomplying with their commands, but it was perfectly legal to hit their weak and defenseless kids. The boss can physically and legally defend themselves, but the kid cannot.
Research suggests it's ineffective at creating compliance and negative for the quality of relationship between the spanker and the spankee.