I would guess that it's like peptic ulcer disease. Prostaglandins contribute to the protective lining of your intestines, so if you are inhibiting prostaglandin synthesis with NSAIDs, you are destroying that protective barrier, leaving the intestines open to more damage.