One piece of food flies into one of the pig's mouths, choking him, and when the others attempt the Heimlich maneuver, the piece comes flying out and knocks over the tree, setting it (and Shrek's rear end) ablaze.
And although they were no better, Shrek's collective friends were only trying to help him celebrate (even in their own ways).