It would depend on the hit. Is it a swipe to the butt or a pop to the hand for reaching for something? For either of those I would keep walking as there is no threat to the child so it would be none of my (or anyone else) business. If it was a slap to the face. I would call the police. if a parent can't restrain their anger in public I would be fearful of what they may be doing at home.