Bitcoin mining is is the process of operating the Bitcoin blockchain, which is an accounting system (a database) for BTC, a cryptocurrency.
Think about how normal cloud databases work: AWS runs on servers all over the world that are owned and operated by Amazon. When you want to make a change to the database, you verify your credentials (login/password) with AWS, instruct AWS to make the necessary changes, then wait while AWS makes the change.