Why is my oxygen saturation low after bowel surgery?

Related to anesthes. And pain meds, causes you to take shallow breaths and slower respiratory rates all leading to low oxygen sats. Not particular to bowel surgery but any abdominal surgery and anesthesia.