I'm curious whether the people who designed those old buildings back in the day really thought about cooling or it was just a welcome (as long as heatwaves don't last too long, as mentioned in other comments) side effect of making those buildings with long lasting materials (lots of large bricks and rocks) of those days.