It doesn't say it causes autism it says there is a correlation between high levels of heavy metals in hair and autism
It could be that people who are genetically predisposed to autism are also genetically predisposed to struggle to remove heavy metals from their system, so they hold higher levels in their hair.
Or it could be entirely unrelated.
At one point it was thought that herpes (HSV) caused cervical cancer because there was a correlation between having herpes and developing cervical cancer.
But actually it turned out that that was because cervical cancer was caused by something you could get from unprotected sex (HPV) and herpes is something you can get from unprotected sex so although there is a correlation there isn't causation.
And at the moment it seems there is correlation but they have not proved causation and so it could be something completely coincidental.