Some women like nerds. A nerd is someone who lacks social skills or is boringly studious. A nerd can be smart but lack social skills, this set of guys are attractive to women. Women like smart and intelligent men but a nerd that behaves "foolishly" and lack social skills is not attractive to most women.
Yes, some women do actually like nerds. Well, let me clarify. Nerds can be defined in two different ways. Perhaps the less common description of a nerd being “a single-mined expert in a particular technical field” can be very attractive to a woman.
The reason is because a nerd like this tends to be intelligent and women do like intelligent men. The more common description of a nerd as being someone who “lacks social skills or is boringly studious” may not be as attractive to women in general, but there are plenty of woman who have similar personalities and would be attractive to a nerd of this type.