I'd guess there's some degree of both, but without the study being more longitudinal (eg, tracking the same population across their entire time in college to see how their grades and sleep habits relate) it's hard to say. Purely anecdotally, I've seen people who start struggling (for reasons that have nothing to do with sleep) drift into a depressive/withdrawn existence that includes insomnia and sleeping late.