Parents spank their kids because they love them and want to correct their kids behaviour, parents never beat their kids with hatred. this is one and extreme method used to put them in correct path, let them know the difference between their good and bad behaviour. Ofcourse sometimes they do it in frustration, which is to be avoided by controlling their emotions and furiousity.