FAQ understanding Matching-System
If students rank other courses higher and on other courses are free capacity, the students will matched on his higher ranked course.
That's quite possible that some courses are not popular for the studetns. As an result on such courses you have some free capacity.
You can set the max. limit capacity of your course already. A limit for all courses are possibly problematical.