Inherited from Old Spanish xarabe, borrowed from Arabic شَرَاب (šarāb) via Andalusian Arabic. Doublet of sirope.
Practice speaking and memorizing "jarabe" and many other words and sentences in Spanish.