Several people have made confident assertions that are incorrect. A school is perfectly within its rights to refuse to release a child to a parent during school hours.