There are a few reasons. First, the foil can be used to lift the cooled bars out of the pan to be sliced. It also makes cleanup easy since the pan will not get dirty. Plus, the bars won't stick to the foil.