Mining is how transactions are validated for a cryptocurrency like Bitcoin. Miners are rewarded with new coins when they solve a complicated cryptographic puzzle.
This can be profitable, but costs like electricity and equipment add up quickly. Plus, mining machines are very loud and require a garage or warehouse space for storage.