The story
From the name of the letter i (of which j was originally a variant) by affixing the /d͡ʒ/ sound to it. Compare French ji, and the similar derivation of Italian vu. Generally changed to jay by association with kay.
Etymology from Wiktionary, CC BY-SA 4.0.