The way a child behaves at school comes from his home education.
Coming to school a child normally behaves the way he has been taught to.