feeling like a failure

This semester was supposed to be my last semester in college. My depression creeped up on me and now there a possibility ill be failing due to missing work. I was supposed to be graduating on time but now i might have to stay another semester. Trying not to be so hard on myself since I’m taking 6 classes but i feel like a failure. Why does depression make it so hard to function 😭😭