Of course it should be. But it's sometimes taught otherwise.
Perhaps another explanation is that in between analyzing and creating is the "trick" of borrowing from the past, that is a staple of virtually all creative endeavor.
But people have told me that theory won't help you write catchy melodies. Those come from somewhere, and some people are just good at it. But filling out the 19 parts of a big-band arrangement involves that framework.
I think it's important to look at theory as descriptive and not proscriptive. Music is fundamentally heard, but having a common written/spoken language with well-defined terminology, structures, idioms, etc. allows musicians to communicate more clearly - eg. "sixteen bars of I VI V I in C major" vs actually playing it.
I had the impression music theory was used more to analyze existing music, and less so to create it.