This is largely because states will not cooperate with ICE to help identify criminals among immigrants. ICE is not an issue in states where the police are cooperating with it.
Good old-fashioned "we can do this the easy way or the hard way" extortion. Why should a state want the federal government to just do whatever it wants within that state?