Several reasons for one, historically speaking racism wasn't socially seen as a bad thing until the recent past hundred years.
Secondly race used to have greater ties to nationality / tribe, which makes sense people didn't travel like we do now.
Thirdly for a slur to develop it needs an...