We normally think about taking photos as an instantaneous process, but in reality there’s always a short period of time during which the photo is captured. In low light conditions this period has to be longer so that the same amount of light can reach the sensor of your iPhone.