Why is it that nerds are usually physically unattractive in school?

I noticed in school that people who usually have the personality of a nerd (both the smart and other ones) tend to be less attractive physically than the other kids.
The normal or less interesting kids were often the attractive or just plain looking ones. Why is this?
Why is it that nerds are usually physically unattractive in school?
Post Opinion