The laws regarding whether children have to go to school vary by country and state/province. In many jurisdictions, children are required to attend school from a certain age until a certain age or grade level. For example, in the United States, most states require children to attend school from around age 6 or 7 until they are about 16 or 18 years old. However, there are some exceptions to these rules, such as if a child is homeschooled or has a valid medical excuse.
Ultimately, it is important to research the specific laws for your jurisdiction with local education board to determine whether children are required to go to school.