But these fairy tales can also serve another less obvious purpose -- teaching children about the benefits of good sleep.