It all depends on the country and the local rules, which can also change from year to year. Attendence didn't matter much, if at all, in my day, but right now it matters. Extremely so. Student's couldn't, until this year (when this was finally revised) even visit the school nurse without getting a "no attendance", which would count negatively with respect to the mandatory attendance requirement for advancing further. And even for receiving the common stipend.