Why is ChatGPT so bad at telling jokes (yet so good at writing poems?)