That cat — Tango — loves the smell of the guinea pigs. He likes to bury his head in their sides and sniff. The piggies are used to his odd behavior, although they get annoyed when the cat snuggles in their bellies. To them, that is simply too weird. Even piggies have boundaries!
Sometimes, Tango, as was the case in that shot, rubs his face up and down the side of a piggy, trying to capture his scent or trying to “mark” the guinea pig as his.