It has been well established that as compared to traditional plant-based diets, Western diets high in saturated fat are associated with increased weight gain.
Researchers don't know why a plant-based diet seems to have a protective effect, but one likely reason is the nutrient profile of vegetarian diets, which tend to be higher in fiber and lower in saturated fat.