Because that's what we're talking about here. The developer is unable to get started or continue because they are unable to take the next step. They are afraid to get it wrong.
The usual solution to this that I've heard is Research. Learn more about what you are trying to do so that you can eliminate the fear.
The solution I used when I was learning to program was to just jump in and start trying things. It's very time-consuming and more than a little stressful, but it works.
At any rate, ANY action is better than inaction when faced with programmer fear.
The only times I enjoy spaghetti code is when I have to learn a tool or more about a language or library to debug or understand it. At least then I'm engaged and learning what to avoid and how to fix it.