I'm sure nigger was a technical term too at one point but it is still racist.
A technical term would be something like "Mongoloid Idiot". That was considered pejorative, so it became "Down's Syndrome".
Then it became "Down Syndrome", because Dr Down did not actually have the condition.