The main reason why babies, who usually need complete blackout, do sleep with a crib cover is because the fabric blurs visual stimuli to such an extent that babies are bored back to sleep.
It also makes it dark enough for the production of melatonin to occur which is natures signal that its time to snooze.