Sometimes attending school causes having opportunities to learn