Shadows form because light travels in straight lines and cannot bend around objects. When light from a source hits an opaque object (one that doesn't let light through), the light is blocked. The area behind the object where no light reaches is called a shadow. No light = darkness = shadow!
Check: Why can't light go around an opaque object to light up the area behind it?