Margarita is Spanish for daisy, and an older family of drinks called daisies paired a spirit with citrus and orange liqueur. That is the likeliest link.
Many people still claim to have invented it.