Light during the days effects the part of photosynthesis involved with “light-dependent reactions”, while many other part of the Calvin Cycle, and other systems, continue while the lights are off. Both day and night are important to photosynthesis.
Light is one of the fuels that feed the Calvin Cycle, but there’s plenty going on in this engine so it doesn’t stop when the lights are out.