A friend of mine used to work in the newspaper industry, and told me that (in New Zealand, anyway) "pupil" refers to high school or lower, and "student" refers to tertiary education.
Not sure if that applies elsewhere in the world, or even if it's still a thing in New Zealand.