How come white folks go into a white hot rage and fight tooth and nail against any efforts to build affordable housing within 5 miles of their house?

Is it just pure racism? Is it just overall hatred of poor people? Some combo of the two? Something else entirely?