Lining the pan allows you to lift the rice krispie treats out of the pan as one giant rectangle. It just makes it easier to cut them into neat squares, but it's totally optional.