Heating is actually the biggest user, accounts for 50% of global energy demand. This includes space heating as well as process heat.
But most people disregard this on the basis of cost (in reality it costs a little more upfront but saves money in the long term) or outdated conditionings that buildings need to breath naturally and should not be airtight.