Once they get their degree, most countries allow a few years visa to stay and work. In that time they get residence.