It doesn't, the workflow when training a model is like that:
- Create 10 evenly distributed splits from the dataset using stratified shuffle
- train set = 8 splits; validation set = 1 split; test set = 1 split
- Shuffle the train set and the validation set and create minibatches from them
- Train for one epoch using the batches
- Repeat from step 3 until all epochs are over
- Evaluate the model using the test set
If we skip the stratified shuffling in step 1 the classes of the train set, validation set and test set wont be evenly distributed.
If we skip the shuffling before each epoch in step 3 the mini-batches in each epoch will be the same.
The proportions of the train set, validation set and test set can of course vary.