Then why teacher give us homework

If child labour is a crime...... Then why teacher gives homework??