Well it's like any other business that runs on electricity. AWS converts electricity directly into profit. They provide a service for paying customers, just like a miner does. I'm sure many datacenters are located in places where electricity is cheap, hell I bet some datacenters get it even cheaper with lobbying.