The rule is: No sharing food to avoid issues with other student's allergies.
That's the reason they don't allow students to share meals or switch in this California school district.
Now, what do you do if you're 13 year-old and you see a fellow student hungry and give him some of your food? Dang if you do and dang if you don't right? Well, that 13-year-old got detention