In Fancy Pants Adventure 2, the candle lights up as you run past it—but only once you've collected all the pants colors and trophies. It acts as a sort of completion marker for dedicated players.
Beyond that, its exact purpose isn't entirely clear, so for now, treat it as a reward for having tracked down everything else in the game.