Basically, Trump has held the door open for pardoning various people, except for Cohen, from the beginning. So Cohen thought he could snuggle up to the snake and charm his way out.
He didn’t.
Maybe Cohen purjered himself. The benefit of giving answers in writing is that is affords the person answering the opportunity to reach back for documentation to support their testamonu.