I can't say for sure, it could be due to many different reasons.
But I had a close call with pesticides that I would like to share. A long time ago, my T. sinensis climbed on a plant that had apparently been treated with Imidacloprid, a pesticide that is a neurotoxin. (I didn't know that at the moment, I had to ask my folks, apparently they had sprayed the plant around 10 days earlier, and according to the pesticide label, the active ingredient is good for up to 30 days.) Within a few hours, the mantis was only hanging by 2 legs, then 1. I realized something was wrong so I placed her on a paper towel. Then her legs seemed to be non-functional. Her raptorials were tucked in close to her body, but sometimes they would slightly stretch out, and back in, out and in. She couldn't move. It was so sudden. For the next 2, I could tell she was gradually improving, though she was still having those strange slow spasms. I fed her water and honey, and she drank. On the 3rd day, she recovered fully.
I began reading up about the pesticide, and apparently contact exposure is less fatal than ingestion (i.e., stepping on contaminated surface vs eating a contaminated bug). Also, the number of days elapsed since the pesticide application has an effect. Even though the label claims effectiveness of up to 30 days, I would assume the effectiveness dwindles as time passes on (not 100% sure on this).
I wonder if the leaves at the bottom of her container could've been contaminated. Or something she ate, especially if the food is wild-caught.
Or it could be something else entirely. Maybe some sort of infection? I really can't say for sure.
Good luck, I hope she pulls through.