Well you could be efficient with your code so it doesn't waste CPU cycles, since CPU cycles == Energy, and if your algorithms use less energy, in all likelihood you'll emit less CO2. Specially if they're widely deployed.
Well we gave developers that job and they failed miserably. We have orders of magnitude more compute and orders of magnitude more bandwidth and things are getting slower. If developers were going to solve that problem they would've done it already.