The learning process for a creative act like coding or writing includes more steps than say, an skill like bicycling in traffic or up hills.
There’s still the same amount of memorization, then understanding what you’ve memorized (like how cranks work and why the shifters are on which side and which way they move.) As far as performance, bicycling is muscle memory and strength and practice. Performance is all practice. There’s some unquestioned notion that the more you practice, the more your skill will increase.
I’m not sure if that’s the same with coding. For one thing, after you come to the point of understaning, you can start to read code and understand it.
But when confronted with a blank page, or even a detailed wireframe, it can be difficult to pull it all from your memory and put it back together into something coherent.
Sure, some things will be repeated in every project — that might be part memory, part convention. But the true creativity must come from somewhere else.