On this document they say it went from Central Spain to America in the 16th century - just on top of the sheet music, last page but one.
There you can read "Source: Las canciones del pueblo español. Juan de Aguila (Unión musical española) - Page. 208" and it's said to come from the Basque Country .