"set" means a group of things. "in that set" means "in the group of things being considered". In the first sentence "that set" presumably refers to the set of all the students at the school.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.