Kids optimize. When I was in high school I was fully capable of getting straight F's in a class I didn't care about and straight A's in a class I enjoyed.
Why bother learning chemistry when you could instead spend that time coding cool plugins and websites in PHP that thousands of internet strangers are using? I really did build one of the most popular phpBB plugins and knew I was gonna be a software engineer. Not that my chemistry professor cared about any of that or even understood what I'm talking about.
As for what you said, yeah, I got 1s (F) because I was too busy coding and reading books on philosophy, as a 14 years old.
Hell, all humans do that. You use every resource available to get out of dealing with things that are not your priority. This means you will never be good at those things and that’s fine. You can’t be good at everything.
I don't disagree with you though.
Plus, many kids fail school not because of laziness, but because of their toxic environment.