Often this is done through something called MAC filtering, which blocks devices like phones or computers from accessing a network unless they are on an approved list of devices.
Occasionally a network administrator might need to know some information about your Android phone so that they can permit it to access a network.