That side of the personality where chaos may reign, and where, unless some spiritual understanding can be attained, is seen as dark.

Also darkness is full of mystery and part of the unknown, the obscurity which hides the divine.