My chickens did this when they first went out to the coop. It was so funny to see all 6 of them squeeze into 1 nest box!
It took them a couple weeks to figure out there were even perchs on the 2nd level of the coop. They are 12 weeks old now and ALL sleep on the perches now!