Why don’t birds fall off branches when they sleep?
When a perching bird bends its legs, tendons in its feet pull its toes tight around the branch. This grip locks in place without any effort. So even while sleeping, the bird holds on safely. It only lets go when it straightens its legs.