It happens. We sometimes get tired or bored. Class content at school is not always the life of the party. Sometimes it requires a lot of discipline and coffee,
I was a terrible student in middle and high schools. It wasn't until I joined the military that I became more disciplined and better student. I was able to attend night time university classes and that discipline served me well. As did lots of coffee.