From Arabic šarāb 'beverage,' via Medieval Latin — the same root behind sherbet and sorbet.
A thick, sweet liquid made by dissolving sugar in water, often used as a flavoring or topping.
From Old French sirop, from Medieval Latin siropus, from Arabic šarāb 'beverage, wine,' from šariba 'to drink.' The same Arabic root gives us 'sherbet' and 'shrub' (the drink). Arabic-speaking chemists pioneered sugar refining in the medieval period, and the terminology came with the technology