Why is the antecedent considered "class" in this phrase?

"The antecedent in the following sentence is class: Students in online classes have to be organized to keep up with their assignments."

The antecedent seems to be "students," not "class" or "classes." The pronoun "their" is referring to "students," isn't it?