Shadows can be scary to some people because of the possible presence of harmful things or unwanted visitors within it. The sciaphobia is the fear of shadows. Often times, this fear can be generational. It means that the fear passes from one person to person or observed behavior. People who are suffering from this phobia may want to stay in the well-lit room in the house while avoiding sleeping in the dark room.
Credits to weirdphobia.com