While the UI/UX people gather requirements and work with the client to work out how the app should look and behave, sure, they can use their imagination. But once the requirements are set then in many cases a software engineer can sit down and build the software. There is no creativity needed to decide whether to use a vector or a double linked list if you need to prioritise fast append and prepend. After all, if you break down software to its basic building blocks, it's all mathematics and logic. And there is no creativity in Mathematics.
Coders often like their craft, they like creating things, even if the final product is not important to them on a personal level.
Most software engineers rarely need to come up with new data structures or fancy algorithms. Most of these things are already there, we just need to know which ones to pick in a particular situation and how to glue them together.
Creating new algorithms or data structures may be scientifically creative. I don't know, maybe it's boring for the scientists and they think reasoning and writing about these is much more fun and creative than implementing them. Anyways it just one kind of creativity.
But there is creativity in 'just gluing' stuff together. It's not that simple and there is more choice involved than you suggest.
What?!
If a requirement is 'creative' - that is, it involves doing something that has never been done before, as opposed to a standard design pattern - then it will also require a creative implementation. Sometimes very simple requirements require great creativity in the implementation.
Most software requirements leave the question of how the thing will be achieved entirely unstated. It's very easy to write a single page of requirements that could require hundreds of pages of code to implement.
Imagine you're a painter and then comes some moron (who is probably not a painter) yelling at you:
- Why are you holding the brush that way? Also, I don't know that brand. - You should make thinner strokes, and always start coloring the surroundings so you don't go over by mistake. - Do not bother with the first brushes until you have a clear pencil sketch. Actually, here, use this one that I paid someone else to make. Limit yourself to add these colors. - The painters at X draw ultra realistic portraits, that doesn't even look like a cow!
Programming sucks because we need to eat.