B.M, an 82 year old male has been taken 650 mg of aspirin four times a day for 6 months to alleviate chronic symptoms of pain and inflammation associated with arthritis. Four weeks ago, B.M was diagnosed with a peptic ulcer. The provider immediately discontinued the daily aspirin and prescribed celecoxib.

Explain the connection between B.M diagnosis of peptic ulcer and aspirin.