Based on earlier studies or history of the supermarket they would know when the busy times of the day are, with that they would deliver in more crowd.
They would need the various server systems to cost out how many crowds they would want to have worked to help limit the number of customers in line and their wait time in line.