Burning candles in glass containers helps to contain the wax and prevent spills while also enhancing the visual appeal of the candle.