Traditionally the plant blooms in winter - and hence when the photoperiod is lowered it is tricked into believing that it is wintertime out there (even if you are growing indoors). Reducing the photoperiod kickstarts flowering in the marijuana plant but this might be different for different kinds of plants.