Spiders play dead for several reasons, primarily as a defense mechanism to avoid predators. Many animals prefer live prey, so by staying completely still, a spider can trick potential threats into losing interest. This survival strategy, known as thanatosis, also helps some spiders blend into their surroundings, making them less noticeable.
https://safepestsol.com/why-spiders-play-dead/