Because there is freedom, a lot of humans (including kids) still need to face negative consequences (punishments) for negative actions in order to have an acceptable behaviour. If the crime goes unpunished, a lot of people could be tempted to do it, and society falls into chaos.
Related: Temptation >>932, Using force if necessary >>1572