From Montreal to Mount Washington, heat records are being broken this summer in places not accustomed to sweltering temperatures. Studies have found that unusually hot weather is linked to lower economic output in countries around the world. Although several factors—from poor crop yields to heat-related illnesses—probably share part of the blame, there is also a more fundamental variable at play: When we get hot, we find it difficult to work.