Spain is counted as European, but it gets a bit murkier when it comes to the term "Hispanic." I don't think it has anything to do with Moors, since you could make at least as strong a case for Sicilians, then, being non-white, since Sicily was also conquered by the Moors. Rather, I think it comes down to the fact that Spanish-speaking people in the US make up more of a sub-culture, because of the large waves of recent immigration from Latin America. People with ancestors from Spain just get wrapped up in that, not for any reason other than having ancestors speaking the same language. It gets all the weirder when you factor in Portuguese and Brazilians, or non-Spanish-speaking Filipinos:
http://www.pewhispanic.org/2009/05/28/whos-hispanic/
Whenever you dig into racial/ethnic definitions too closely, you see how arbitrary they ultimately are. For example, an Aboriginal Australian, Arab, or Sri Lankan could very much be seen as "black" without being at all African, while plenty of people actually born in Africa, including some with heritage going back there thousands of years, don't look black.