The "nerd" pejorative isn't about doing well academically, it's more about bragging and obsessing. It's about making academic performance part of your identity. That's what people think is uncool. It's not like the quarterback loses points if he happens to be smart. He just shouldn't flaunt it or obsess about it.