When I met my husband I refused to invite him home for Passover because I was embarrassed my mother might serve all the catered dishes in the wrong order.
You get ideas from daydreaming. You get ideas from being bored. You get ideas all the time. The only difference between writers and other people is we notice when we're doing it.