Inflammation in the lining of the stomach may cause bleeding. It is known as gastritis. NSAIDs, infections and certain medical conditions can cause gastritis.