ChatGPT doesn't do math, it does language (and often hallucinates in the process). But the one thing people expect computers to be able to do flawlessly is math, which is why it is esp jarring when it makes glaringly obvious math mistakes.