The best explanation for why the 1924 Immigration Act favored immigrants from northern and western Europe is:
The act used the 1890 census to determine national quotas.
This method of using the 1890 census allowed for a larger quota for immigrants from northern and western European countries, where larger populations had immigrated prior to that year, while limiting those from southern and eastern Europe.