From the perspective of evolution there's a purpose... burn fewer calories in the dark when there's nothing else to do.
The question is whether it still matters in the modern era.