Probably Internet is not as critical in Algeria as it is in US, so people see it as a worthwhile tradeoff for a limited time period. I am actually impressed that they care this much about education, could fix a lot of their problems in the next generation. Imagine Americans being asked to put away their phones for a week to prevent cheating in schools?