The Spanish “Huir” comes from the same Latin root as “fugitive”, “fugitivus”, meaning, “to flee”.
Pattern: Latin words that began with an ‘F’ tended to lose that initial ‘F’ sound and became silent (yet represented in writing with an ‘H’) as vulgar Latin turned into Spanish.