When I worked for McDonalds, at closing we had to throw away 15-20 lb trash bags of food. Closers were not allowed to take any home or risk being fired.
If Mickey D’s gave it to a shelter and somebody got sick they’d get sued.