It's actually a vulgarization of ligadillo ("diminutive of ligado") for something that's a mixture, but it began to be used as the name for a half-dry, half-sweet brandy.
Mixture of dried anise with sweet