Mandatory classes are a way to get lazy, unmotivated students out.
This is really how most mediocre educational institutions do it and it shows.
However there are some examples of mandatory classes.
For example in stanford, students must have completed java 101(or something like that) before they can do the SICP class.
I guess thats a prerequisit and not mandatory then.
I love your new alpaca pic