It wasn't. The only way to get ice was to import it from a frozen place. In the 19th century Frederick Tudor of New England made a fortune transporting ice around the world. The Atlantic had a great piece on him about a year ago. This episode of Nova about cold had some interesting stuff you also might fund useful, including a 17th century version of air conditioning using ice and adding salt to make ice even colder.