Doctors repeatedly advise patients to fast for at least 6 to 8 hours before surgery. But why is this rule so important? Here’s what you need to know.