Do you ever try too hard to come up with an answer? You push and turn your mind in circles but you just can't quite figure things out. And finally, exhausted, you give up and what happens? You awake the next day and your answer is obvious. Viola!
So where does the answer come from?
Your conscious mind was asleep, and once it was out of the way... inspiration was able to appear, effortlessly.