This does not directly explain why coins of this type existed in the Americas so late in time, given that both the Mexicans and the Incas already worked gold and silver in a fairly traditional and correct manner.
The absence of modern machinery to mint money, manufactured outside of Spain, and the needs of commerce in said territories caused the appearance of the macuquinas, also known as "cobs".
Struck and trimmed by hand in the 16th through 18th centuries at Spanish mints in Mexico, Peru, and Colombia (among others), silver and gold Macuquinas (cobs) are handsomely crude, nearly all with a cross as the central feature on one side and either a coat-of-arms (shield) or a tic-tac-toe-like "pillars and waves" on the other side.
Some were struck with a date, and most show a mintmark and an initial or monogram for the assayer, the mint official who was responsible for weight and fineness.
They were generally accepted as good currency all around the world, and were the exact coins pirates referred to as "pieces of eight" (8 reales) and "doubloons" (any gold cobs but originally 2 escudos).