You need some knowledge to recognize knowledge, so where does the first knowledge come from?
I've always disliked words like inspiration. Writing is probably like a scientist thinking about some scientific problem, or an engineer about an engineering problem.