Having food (or sweets usually) is actually very new. Originally, they were just Christmas scenes with 24 numbered "windows". Behind each window would be a christmas style picture - be it a present or Christmas tree. The final window (usually a double sized one) would normally have a nativity scene. Very much a european thing. These days tend to find that they have very little to do with Christmas at all, which is a shame really.