The parietal cell synthesizes intrinsic factor (IF) and secretes it, as well as acid, into the gastric lumen. The pathogenetic basis of pernicious anemia (PA) is the inability of the parietal cell to do so. Without IF, cobalamin cannot be absorbed efficiently.
https://www.sciencedirect.com/topics/neuroscience/pernicious-anemia