# why is the signal divided into epochs in EEG classification?

I'm new in EEG signal classification. Studying the literature on this topic, I wonder why the EEG signals are divided in epochs, so, instead of classifying the whole signal all at once, we usually classify "windows" of signal, splitting the original one. I searched in the literature for a possible explanation, but I find nothing which answers to my question.