I was once a fairly talented writer, but coding is less effort and on average better paying, so that's the path I chose. In the end I really don't see that big of a difference in the creative process. Granted, once you focus on a specific path for several years you change your relative strengths so it's easy to confuse innate talent with effort.
Well, there is: One that doesn't express your viewpoint well, for example. It depends on precisely what you are trying to accomplish in writing it, of course.
Mathematical proofs require a lot of creativivty, too. There are many different ways to prove a given theorem, and it takes quite a bit of imagination to come up with one.
I'd say the main difference is emotional. Being creative in the humanities requires a certain emotional madness, which can be especially debilitating. Scientists and mathematicians mostly just need to be obsessive, focused, and good at ferreting out hard to recognize patterns.
Mathematicians typically deal with abstract problems that have no direct relation to human feelings. Novelists, artists, and social scientists typically do the opposite.
Most mathematicians would probably not do very well in the open-ended creativity of writing a novel say.
One type of creativity is goal driven (e.g., prove this theorem), while the other not so much (e.g., write an interesting novel).