In our county, you are not allowed to make home made baked goods for school functions (classroom birthday party, or whatever). Only choice is to send in baked goods from walmart or whatever. The concern seems to be food allergens.
Go figure. Many people make food at home because they cannot eat the stuff produced commercially, or want a healthier alternative.
In the US, soybeans are ubiquitous in baked goods (vegetable oil is usually soybean oil), and they're a top 5 food allergen. It is rare to find commercially baked goods that do not have them.
When did getting food from strangers with ingredients you can barely pronounce become safer than from your neighbor?