Birds do not sleep in nests as you think, they sleep in the same places they inhabit in the daytime.
+++
They sleep on the nest if incubating eggs or rearing young - the only time they use nests - otherwise many of them find sheltered roosts reasonably safe from weather and predators.
Sleep.
they sleep in big bushy nest made of leaves, branches, mud and twigs
sleep, all birds but owls sleep at night, their eyes are most similar to humans, so they cant see when it is dark.
Kingfisher birds typically sleep at night and are diurnal, meaning they are active during the day. They often find a safe perch or a sheltered spot to rest, where they can remain vigilant against predators. The exact duration of sleep can vary depending on environmental conditions and individual behavior, but like many birds, they generally sleep for several hours each night.
most birds fly up into the trees and sleep there...
A roost is a perch or branch where birds settle at night to sleep or rest. It provides them with a safe and elevated position away from predators.
Kiwi sleep during the day. They are nocturnal birds that forage for food at night.
The amount of sleep a bird gets per day or night depends upon the bird. Different birds sleep for different amounts of time based on their habitat and proximity to predators. The amount of sleep they need also depends upon the time of year it is. Migrating birds tend to not sleep as often as non-migrating birds. I know where I live, I don't hear the neighborhood birds for about six hours at night from about 9:30 pm until about 3:30 am. They may not necessarily be sleeping during that time but they are also not singing and calling either.
Peahens, like many birds, typically sleep at night and may take short naps during the day. They tend to roost in trees or elevated areas to stay safe from predators while they sleep. The amount of sleep can vary based on environmental conditions and their activity levels, but they generally follow a pattern similar to that of other birds, averaging around 10-12 hours of sleep each night.
Nightingale birds sing all night long. There is a myth that they don't sleep, but of course, it isn't true.
birds live in nests in a tree and sleep in a nest
They are thinking about where their next meal is going to come from and how to stay safe from predators.