Draco feels in control of so few things that lessons had become inordinately important this year. He thinks his failure at his other task is inevitable, and that will have severe consequences. Consequences that top marks in lessons won’t mitigate, by the way, but it’s a small, short-term sort of boost when he does well. It helps keep his morale up, so to speak.