I am not sure, but imagine been a member of the UN means you have to. Remember, the UN is a product of WW2 and there were huge issues of massive refugees migrating across Europe and Asia.
Also, the fact that many European countries (including the UK and the US) refused Jewish refugees before...