Ice, Ice, Baby

In many hospitals in the United States, women in labor are not allowed to eat or drink, engaging in what might be the most difficult physical effort of their lives with only the sustenance provided by a small plastic cup of ice chips. What is the reason for this rule, and how necessary is it?