While both guinea pigs and rabbits are small mammals, they are not related in the way that you might think.
* Guinea pigs are rodents and belong to the family Caviidae.
* Rabbits are lagomorphs, belonging to the order Lagomorpha.
So, a rabbit is not a rodent, and not related to guinea pigs in the way that a hamster or a rat is.