Sometimes attending school causes learning