The Chinese Exclusion Act of 1882 was passed due to growing anti-Chinese sentiment and fear of competition for jobs. It was also a response to economic pressures and political tensions between the United States and China.