The candle is a tube and you light the top end whilst the base is in the ear.
The idea is that the hot air at the top end, draws further air up the centre of the candle like a chimney, whilst also warming it. This warm air partially vapourises the ear wax which is also drawn up and out of the candle.
Two sides to the argument for and against them here.