The scientific name of the common species is Cavia porcellus, with porcellus being Latin for "little pig". Cavia is New Latin; it is derived from cabiai, the animal's name in the language of the Galibi tribes once native to French Guiana. Cabiai may be an adaptation of the Portuguese çavia (now savia), which is itself derived from the Tupi word saujá, meaning rat. Guinea pigs are called quwi or jaca in Quechua and cuy or cuyo (pl. cuyes, cuyos) in the Spanish of Ecuador, Peru and Bolivia. Paradoxically, breeders tend to use the more formal "cavy" to describe the animal, while in scientific and laboratory contexts it is far more commonly referred to by the more colloquial "guinea pig".
How the animals came to be thought of as "pigs" is not clear. They are built somewhat like pigs, with large heads relative to their bodies, stout necks, and rounded rumps with no tail of any consequence; some of the sounds they emit are very similar to those made by pigs, and they also spend a large amount of time eating. They can survive for long periods in small quarters, like a 'pig pen', and were thus easily transported on ships to Europe.
The animal's name carries porcine connotations in many European languages. The German word for them is Meerschweinchen, literally "little sea pigs". (The Polish świnka morska and Russian морская свинка mean exactly the same.) This derives from nautical history: sailing ships stopping to reprovision in the New World would pick up stores of guinea pigs, which provided an easily transportable source of fresh meat; Schweinswal (pig-whale) is German for porpoise, which was another food source for sailors. The French term is Cochon d'Inde (Indian pig); the Dutch used to call it guinees biggetje (Guinean piglet) or Spaanse rat (Spanish rat) in some dialects, and in Portuguese the guinea pig is sometimes referred to as porquinho da Índia (little Indian pig). This is not universal; for example, the common word in Spanish is conejillo de Indias (little rabbit of India / the Indies).
The origin of "guinea" in "guinea pig" is harder to explain. One theory is that the animals were brought to Europe by way of Guinea, leading people to think they had originated there. "Guinea" was also frequently used in English to refer generally to any far-off, unknown country, and so the name may simply be a colorful reference to the animal's foreignness. Another theory suggests the "guinea" in the name is a corruption of "Guiana", an area in South America, though the animals are not native to that region.A common misconception is that they were so named because they were sold for the price of a guinea coin; this theory is untenable, because the guinea was first struck in England in 1663, and William Harvey used the term "Ginny-pig" as early as 1653. Others believe "guinea" may be an alteration of the word coney (rabbit); guinea pigs were referred to as "pig coneys" in Edward Topsell's 1607 treatise on quadrupeds.
Wikipedia