Anesthesia used in surgery slows down the digestive system so that your body does not pass gas. Farting when you wake up from surgery is a good sign that your digestive system is returning to its normal functioning.