I believe it also depends on the environment around the school. In a third-world country, I'd probably prefer being safely indoors at school and in contact with friends, with free time if needed, than in a sketchy area without being able to see many friends. In a rich European country, there's enough public infrastructure (public transport, libraries, parks, etc.) that I'd probably prefer to be outside.