What does guinea mean in guinea pig?

Guinea is a country in West Africa. However this animal originated in South America. It is possible that the name of Guinea got mixed up with Guiana (which is in South America). Or it is possible that, when the animal was introduced to England or North America someone used the name Guinea because the though it was appropriate for this new import from a faraway and strange place.