Exams are ultimately for the students' collective benefit; they ensure that lecturers are teaching effectively, with good learning outcomes. If you're someone who "just wants to learn" and don't care for the rigor of a full Math/Physics curriculum, that's one thing. But if you do care, exams are great.