And modern cooling was invented by Carrier, with the original use case to actually control humidity to help the publishing/newspaper industry:
> On December 3, 1911, Carrier presented what is perhaps the most significant document ever prepared on air conditioning – Rational Psychrometric Formulae – at the annual meeting of the American Society of Mechanical Engineers. It became known as the "Magna Carta of Psychrometrics."[8][9] This document tied together the concepts of relative humidity, absolute humidity, and dew-point temperature, thus making it possible to design air-conditioning systems to precisely fit the requirements at hand.
* https://en.wikipedia.org/wiki/Willis_Carrier
The idea of temperature (first in cinemas and theatres) came later. People under-estimate how much humidity control is needed for comfort: many building codes are adding language to have a standalone whole house dehumidifier.