You may find it strange that I will show in this text, but it is not my opinion. It is the opinion of an evolutionary biologist of Cambridge, Professor David Bainbridge.
In his opinion, based on research, which most men look at women, is not nice legs, not perfect breasts. In fact, they are looking brain. That yes, brain or intelligence!
It is likely that you disagree or find strange the statement of the teacher, but it gives a reasonable explanation:
Smart women are more likely to be responsible mothers.