You’re positing that the only function of my cocktail is to inebriate me. But it also delights my senses, and a warm Mojito is far less delightful than a chilled one. Chilling the cocktail could be achieved by other means, but ice is both effective and readily available.