Another way to say "The purpose of schools is learning" is "learning is the purpose of going to school."