The telegraph was hailed for its revolutionary ability to span distance. Now AI is being hailed as a great leap forward. But both came with environmental costs.