Could be, but I bet the amount of people who breastfeed their kids for 2 years is dwarfed by the amount of people who don't, but due to chance have kids 2+ years apart.
Based on a quick google search of breastfeeding rates, in the US 25% of women who breast feed do so until 12 months, which may be enough to create the difference noted in the study.