I dont know about Sweden, but Germany's postwar constitution regarding immigration had certain constraints placed on it by the allies:meaning Germany would never be allowed to repeat crimes of the past