The storyFrom blacks (plural of black) with -x replacing the /ks/ sound.Etymology from Wiktionary, CC BY-SA 4.0.