When the diet is poor or the body has disorders in absorption and metabolism of vitamin B12, leading to vitamin B12 deficiency and reducing the number of healthy red blood cells circulating in the body, causing anemia due to vitamin deficiency B12.