Confounding:
In statistics, a confounder (also confounding variable or confounding factor) is a variable that influences both the dependent variable and independent variable causing a spurious association. Confounding is a causal concept, and as such, cannot be described in terms of correlations or associations.
That is: you see a correlation between two variables and try to understand the causality that might connect the two variables you look at. If there is a causal factor, but an indirect/external one concerning your two variables of interest then you only have confirmed the correlation, but are not much the wiser for the probable causal link connecting them. This is very often a problem if we like to hunt for monocausal explanations and in reality there are more factors than one influencing the outcome of any observation.
If variables A and B are correlated, that's interesting. If A causes B it's fantastic to know. But If C causes A and B, and you do not know about C, it's still a dark box. You want to get to know C and how much iz is causing anything on A and/or B. Sometimes it is not easy to manipulate C, then you must at least identify C and better yet try to control C.
The study mentioned in the news report is:
Association of Childhood Infection With IQ and Adult Nonaffective Psychosis in Swedish Men. A Population-Based Longitudinal Cohort and Co-relative Study
Second, is the association between childhood infection and adult psychotic disorders likely to be causal, or could this be explained by shared familial confounding? A 2015 study used co-relative control analyses to show that shared familial confounding is an unlikely explanation for the association between lower premorbid IQ and adult psychotic disorders. The IQ-psychosis association was similar in the general population and in cousin, half-sibling, and full-sibling pairs with differing IQs. If there were confounding by shared familial risk factors, the association would be expected to become progressively weaker in groups sharing increasing levels of genes and environment compared with the general population; this was not the case. These findings also suggest that unique (nonshared) environmental risk factors may contribute to lower premorbid IQ in individuals with schizophrenia. Childhood infection may be such an environmental factor not shared within families. To our knowledge, no study has examined the effect of shared familial confounding on the association between childhood infection and adult psychosis. We are not aware of any independent replication of the co-relative analyses of premorbid IQ and adult psychosis.
This is perhaps easier to understand if already explained in a headline:
Familial (shared environmental and genetic) factors and the foetal origins of cardiovascular diseases and type 2 diabetes: a review of the literature
In that article you have the following visual explanation:

Familial (socio-economic and genetic) confounding of the association between birth weight and risk of cardiovascular diseases and type 2 diabetes.
So, in your case, the study tries to determine whether childhood infections are the most important causal factor for explaining the observed correlation for adult psychotic disorders, or whether there are shared influences that might attribute their bit to an explanation. Among those familial variables in this study were:
Winter birth (December to May), migration status (either parent born outside Sweden), parental history of NAP (from NPR), household crowding (ie, when the number of livable rooms minus 1 is greater than the number of people living in the house), and parental highest socioeconomic status when the participant was aged 8 to 12 years were included as potential confounders.
That made them feel confident enough to reach the following conclusion:
We present evidence that early childhood is a sensitive period for the effects of infection on IQ and risk of NAP. The associations of adult NAP with early-childhood infection and adolescent IQ are not fully explained by shared familial factors and may be causal. Lower premorbid IQ in NAP arises from unique environmental factors, such as early-childhood infection or other factors intimately related to this. Childhood infection may increase risk of adult NAP by affecting neurodevelopment and by exaggerating the effects of cognitive vulnerability to psychosis.