Bitcoin miners compete to verify transactions and add them to the blockchain. They are rewarded cryptocurrency and transaction fees.
Crypto mining requires specialized equipment that can cost a lot of money and use large amounts of electricity. The returns can also be volatile.