They're required to declare a major before they enroll.
In European nations, most of the classes in university are government funded. Which means that it is important to know the quota for each class before the semester even began in order to know how much budget they're going to spent to accomodate the student.