Very smart move. Actually, in the US, public universities also do that. They will give preference to students from other states, as they will pay out-of-state tuition.
For the stability of the society, it seems the right thing to do.
Don't US universities have similar requirements, e.g...