The heat isn't wasted, it has a significant impact on flavor.
Extraction of flavor etc from coffee grounds changes based on the water temperature. You can easily experiment with this by taking some coffee grounds and trying to brew with various temperatures, and noticing what flavors you get out.
There's a reason cold-brew needs hours and hours to extract a good coffee flavor while regular espresso or pourover is done in a matter of minutes.