Contrary to what some people say, these situations are very often a gender thing.
They tend to happen in places where girls are most limited in expression, at times when they are most limited in expression. The range of behavior considered normal for teenage girls in the US is severely limited compared to what is considered acceptable for teenage boys.
When I was in high school, I could wear the same dirty jeans every day, I could start a band that wore mouse ears and played top 40 pop songs backwards, I could spend 12 hours straight programming my computer at home, I could go to school without shoes on and completely ignore my hair unto entropy.
If I were a girl, not plucking my eyebrows would drop me to low social status at school, and depending on the school maybe even just not wearing makeup would do it. Combine that with letting your hair go to pot and locking yourself away in your room for 12 hours to program your computer, and you might be diagnosed with a psychiatric disorder like aversion or oppositional defiant at best, thrown out of the house at worst. In certain communities around the world, the triggers for deviance might start if you wore pants, or just asked to wear pants, or refused to go to the dance. I swear I've read nationally distributed news articles that start with girls choosing to wear a suit to prom, and end in death threats.
Being sick, or possessed by demons, isn't punished in society like the very real female transgressions of sloppy dressing, or being obsessed with math. Sickness and possession are signs of physical or spiritual attack that make you a victim, rather than signs of deviance that make you a threat to the social order.
Expression that relieves stress has a lot wider acceptable range in certain groups than in others. The groups with the narrowest options for expression tend to find more bizarre loopholes (sickness and religious mania), resulting in behaviors that seem odd.
As a boy, the only thing I was expected to avoid was "acting like a girl." Girls are actually expected to act like girls - whatever strange set of largely male-dictated behavior that entails.
edit: Fainting fits were once an expected behavior for women, and special furniture was required. Hysteria was thought of as a disease of female reproductive organs, and was cured through orgasm.
special furniture: http://en.wikipedia.org/wiki/Fainting_couch
the expert's opinion: http://books.google.com/books?id=ilXAFoFg1-8C