The title of the article is, in fact "The Association between Infections and General Cognitive Ability in Young Men - A Nationwide Study." And as others have pointed out elsewhere, the authors controlled for some (though not every) conceivable common causes of infection and reduced IQ.
Though, as a criticism of the author of the blog post, I would agree with your comment.