Using their computers, miners help confirm and record transactions on the crypto currency blockchain. In return, they get rewarded in new coins.
Mining cryptocurrencies is extremely resource-intensive, especially as the market value fluctuates. Consequently, electricity costs play an important role in determining profitability.