Why is svalbard 24hrs dark?

Because it is well above the Arctic Circle, where the Earth is tilted too far from the sun during winter months for any sunlight to reach it. During summer, however, it is opposite - 24 hours of sunlight.