It was my understanding that in those cases the immune system overreacts because it hasn't been correctly calibrated by being properly challenged.
It's not that it's too strong, it's that it lashes out at things that aren't actually threats because it's ability to recognise what is and isn't a threat is diminished
An additional datapoint I remember reading is that humans for so long has worms and other parasites that dulled the immune system that our immune system is actually hyperactive because we no longer have those parasites to repress it.