Why do people hate the light and refuse to come to it?

Because their deeds are evil, and they do not want their deeds to be reproved or exposed.

Watch the Teaching: Why Do People Prefer Spiritual Darkness?