Perhaps not racist but the origin is quite horrifying
According to Hong-Yee Chiu, an astrophysicist at NASA, the Black Hole of Calcutta was the inspiration for the term black hole referring to regions of space-time resulting from the gravitational collapse of very heavy stars. He recalled hearing physicist Robert Dicke in the early 1960s compare such gravitationally collapsed objects to the prison
https://en.wikipedia.org/wiki/Black_Hole_of_Calcutta