Where does the name guinea pig come from?

I think cos guinea pigs are related to pigs and they were sold in Peru for one guinea something like that