Why and how did crustaceans evolve pain receptors but insects and arachnids either didn't or lost them

[removed]