Invariably, they arise out of a curious mind. People make observations and notice what might be subtle patterns in the information, or they think about a problem in one field by playing with ideas from another field, or a thought comes after struggling with a problem for a long time. They can arise in any number of ways; but they all have curious minds as their means of expression.
Emdrgreg