It can be a sign of anger or discomfort, or they could simply be chewing (guinea pigs tend to keep food in their mouths and work at it for a long time on the back molars, as hay is very hard to break down. So even if you haven't seen them eat, they may still have something working back there.)