Stomach ulcers can cause bleeding from the ulcer, which can lead to anemia if left untreated. The bleeding may appear as black stools.