Believe it or not, a chicken's small brain is entirely adequate to the job of making good judgements for its owner. They will move to a cooler spot if available.
Reasons for hanging out in the coop are #1 cover and safety, #2 being near their friends who are using a nest as laying can be a...