It should be compulsory that children and young people attend schools, a councillor has said.