Another way to say "taking an exam is for education" is "Exams can tell us how much we have learned."