Maybe because they evolved in different locations.
So one-celled stuff mutates into fungi in one spot, while some other one-celled stuff mutates into a worm in another spot, then those groups get established and mutate into something else etc.
I don't see it. Beside, that would be a lot of coincidences to assume they are random occurrances.