Fasting before surgery is normal because the stomach needs to be as empty as possible. In this case, however, there's more to the preparation. Because the surgeon is going in through the abdomen, it is essential that the organs, be easily seen and avoided. The best way to make the intestines noticeable, is to fill them with barium and easily detectable. This is why this procedure is necessary.