Alex Cobb pitched seven strong innings but the Giants' offense couldn't help him out in a 3-1 loss to the Royals on Friday.