Are you suggesting that all miners with renewable energy resources are located in the middle of a desert?
Even then, we could have used the equipment (solar panels, wind turbines, etc) for something else. Unless the world is running on 100% renewable energy it doesn't make sense to say that something that requires energy doesn't cost (the world) anything because it's running on renewables.