If anything, is makes a lot more sense. Attractive people are often healthier, and body health translates into brain health. A healthy body and mind can be thousands of times more powerful than an unhealthy one, as per the volume of brain cells and their interconnections.
Not to say unhealthy people are all dumb and unattractive, or that all healthy people are smart and hot.
It's only movies and tv that've convinced people of the attractive but dumb stereotype. The science doesn't agree.