Math classes are no different. Only a handful of students will solve a math problem by themselves, others will just wait for teacher to show them what to do, and then repeat the procedure with hardly any understanding what is going on. The exams consist of problems that were already solved in classroom, it's enough to memorize the procedures and apply them to tasks on exams.