These episodes with kids are never explained. They're brought on by emotional factors, and they rarely occur again. They're more akin to auto-hypnosis, a kind of self-induced trance.
The doctor tries to explain to Wendy that kids can go through these episodes and not be explained--that is a form of auto-hypnosis.
Share this sound clip with your friends.