https://www.treehugger.com/green-architecture/architect-uses...
But, of course people back then weren't any less intelligent, they simply didn't have as much knowledge, probably due to the inefficiency of transmitting knowledge from one generation to another without the use of digital technologies.
If anyone is at all interested in ancient (or even just modestly old) cooling techniques, 99 Percent Invisible had a particularly great episode in "Thermal Delight"