That's the loop, isn't it?

Attend class, be a good pupil, even if you hate the subject matter.

Get good grades, get parents' approval.

Once enough is known to get the grade, coast until recess/end of school.