Some students are interested in one subject more than in another one so they would probably like all those extracurriculars but only for the subjects they are interested in. Teachers can't force everyone to come to extracurriculars but they still need objective measure of students' performances evaluation. Homework provides this opportunity.