Unknown. Possibly from Quechua wakcha, which would make it a doublet of guacho.
Practice speaking and memorizing "huaso" and many other words and sentences in Spanish.