High school (in the US) is so easy for gifted students that they barely need even try to earn a 4.0 and be the valedictorian.
Not all kids with good grades go on to do awesome things. But it makes sense that many of the best and brightest, the 'eccentric' ones, happen to have an easy time in school.