Iced coffee is more expensive because it uses more resources.
From plastic cups to napkins to double brewing (re-brewing coffee a second time to make it stronger), the resources needed for iced coffee are more numerous (and expensive!) than hot coffee is. All of that adds up, and it causes establishments to charge more for their iced drinks than their hot-beverage counterparts.