Just like NAC, which the FDA tried to outlaw from being sold as supplement when it‘s a completely harmless, proven-beyond-doubt miracle drug for anything between significantly reducing bipolar disorder symptoms, preventing symptomatic flu and reducing covid mortality.
Wonderful people over there at the FDA, looking out for the public's best interest.
So, it helped against covid (in key populations) because one of the key interventions against covid will kill you if you also have worms. So in places like Bangladesh and Pakistan where intestinal worm infections are common, covid outcomes improve because the worms got killed. If this[0] is correct (and it is a very new result, so might as well not be), the positive correlation might well be that your immune system stays calmer if you have no worms.
[0]: https://www.cell.com/cell/fulltext/S0092-8674(22)01463-5