This also improved its human like text generation. we don't know exactly how but teaching it programing languages improved its reasoning. learning to code made chatGPT write better jokes, poems, essays.