Often times, the anxiety is the beginning of a cycle that inhibits learning (people turn to their devices for anxiety-relief in math class, causing them to learn less math, causing them to be more anxious about math, and suddenly there is an increase in "math anxiety" except for the small minority socialised into math from a young age)
If I had a gameboy (as some others in this thread mention) on me in middle/high school, I'd be at least engaging with something where the input informs the output, probably realise it's not worth the effort, and start paying attention to class.
It's also worth noting that social media platforms are expressly designed to not be understood; you don't actually learn anything about technology or gain an interest in computing by watching Reels; it's not like the teachers are the dumb ones and the kids are all discussing the merits of glibc vs musl on IRC or something
I understand that HN is mostly inhabited by those from a more techno-optimist era when most administrative positions were held by boomers who thought that the monitor was the computer, but this isn't that. This is qualitatively different.