Lightning in the winter is usually caused by very strong winter storms such as snowstorms or blizzards.
The lightning in winter is also known as thunder snow and typically falls in regions of strong upward motion within the cold sector of an extratropical cyclone.
Thunder snow or lightning in winter can sometimes occur even without a snowstorm or blizzard at the time but then later a snowstorm or blizzard may or may not occur later on.