Carcinization is an example of a phenomenon called convergent evolution, which is when different groups independently evolve the same traits. It's the same reason both bats and birds have wings. But intriguingly, the crab-like body plan has emerged many times among very closely related animals.