Several species of birds, including chickens, have a natural need to perch. This is due to their instinct to protect against potential predators.
For ours coop or runs... no choice.... Chicken roost needed!
I built one with wood material.
See: Making a chicken roost for...