Perhaps there was a decline child birth due to the war, perhaps parents decided not to send their children as a result of the war, or perhaps Dumbledore knew of the war ahead and decided to only pick the best students out of the lot to attend Hogwarts (and in turn battle Voldemort) and limit the number of casualties.