Because a single sample is a sequence, eg, a sentence to be translated. However, you don’t usually train with a single sample but several, a batch to smooth gradients and to obtain generalizable normalization statistics.