The other possibility is that going to the parties is a good use of time, and that is where many students develop their networks.  In addition to that, signalling theory would indicate that what classes you take and how well you do are much less important than the university you attend and the faculty you graduate from.