This may not be a response to fear tho. I have a lamp for when I'm reading and writing at night and after a while I would find myself just falling to sleep with it on until later on it just became part of my routine.
I associate it with warmth and comfort. My sleep seems better with it being on. It just can't be too bright tho.