I did well in school regardless, because school is about surviving without becoming dumb. The more the effort put into a program that's designed for the stupidest kid, the dumber you become. It was about efficiency, better results than most with minimum effort.
Refer to Taylor Gatto's The Six-Lesson Schoolteacher[0].
Unlike me, she'd do the homework. On time, even! The teachers could verbally ask her anything on the test and she'd reply with the answer. Yet once the test came, she'd do poorly nearly every time. A few teachers were able to work with her, but otherwise she'd simply do poorly in a class if it was weighted for the test instead of other things.
I was more like you and nearly failed due to homework not being done. I got better when I got older, but I also weirdly had less homework the last 2 years of high school than I did in middle school.
Of course, both situations really are illustrative that education is mostly punitive and it doesn't really matter if you can prove you know things.