For the same reasons we use quizzes and tests in traditional classrooms:
To evaluate students' understanding To assess our teaching methodology