I imagine it has to do with liability. With so many people ready to file suit over piddly stuff most schools are just not willing to take the risk that some donated cupcakes made somebody's kid sick. And with all the concern over potential food terrorism(poison candy apples?) who could blame them?
Let it go.