A hernia occurs when increased pressure in the abdomen causes a section of the bowel or other tissue to protrude through this weakness. This pressure can be caused by coughing, sneezing, laughing, heavy lifting or, somewhat bizarrely, playing a wind instrument. And, as a result, leads to the pain you describe.