Assuming he's guilty, the most common motivation for lying under oath is to save oneself from some unfortunate consequence, be it pecuniary or personal (see, eg, Bill Clinton).