According to The Vegetarian Society: “B12 is synthesized in nature by micro-organisms. Animal-derived foods are a primary source because animals eat other animal food, they produce B12 internally due to the intestinal bacteria (not present in humans), and they eat food contaminated with bacteria.”
This suggests that in the sterilization process of manufactured foods, micro-organisms that contain B-12 are removed or destroyed. Further studies needed.