​​Why are the Ventilators kept at the top of the Roof?

Ventilators are provided in the rooms just below the roofs because when the air inside the room gets hot this warm air rises up and flow through these ventilators and thus cool air remains at bottom. So this is how ventilators make us relive in hot summers.