Weeder courses signal to the students "Hey, if you're struggling in this class, it's not too late to switch majors". Every student "weeded out" frees up a disproportionate amount of resources for the rest of the students who are ready and willing to learn.
But sometimes they are a real problem from the student’s perspective, especially when the class is made artificially difficult to pass, and this does happen. They are not always used to prune students who can’t handle a degree, they are sometimes used to limit enrollment in a program that doesn’t have enough capacity, which isn’t an issue with student preparation or capabilities.
Their proposals were beaten back, but it took a lot of effort.
Czechia, 1998-1999. No tuition involved, study was still completely financed by the taxpayer.