This is a surprising anecdote to hear. Most public schooling I've heard of, certainly my own experience, was that classrooms are miserable for kids who are attention deficit.
Work-from-home during the pandemic has yielded similar issues with motivating myself to do work for my job (but to a lesser degree, as I've learned skills to cope over the years).