Answer
Calculus can be used to show that a sphere has minimal surface area for the volume it encloses. A hemispherical shape similarly has less surface area per volume than buildings with rectangular sides.
The lower the surface area exposed to the outdoors, the lower the heat loss or gain.