Those few lonely children with good ideas, OTOH, have very little pressuring them to abandon their ideas. Who asking them to stop coding and go out to play?
I don't know how strong the correlation is (maybe lots of bedridden kids don't become creative? maybe lots of non-bedridden kids do become creative?), and there are other reasons for being lonely.
On the other hand, I have a friend who you wouldn't call creative in the conventional sense, but comes up with increasingly imaginative ways to pull women. Ultimately, it's what you devote your time to, whether it's by free will or some limitation.
* This tho probably only applies to good ideas as in paradigm shifting game changers. If you include minor evolutions of existing ideas (that can be quite successful financially of course), being popular might even help to come up with those.