What causes these bags under my eyes?

I’m a college student, erratic sleep schedule included, but I just had ~8 hours of sleep and I still have big bags under my eyes. Are those bags really related to how much sleep I get? How can I get rid of them/prevent them in the future?