Mining is “part of the bitcoin” in the way that stocks are part of the stock market. That is, generating new blocks in the blockchain is literally the fundamental basis with which bitcoin exists. The stock market doesn’t exist without stocks and blockchain in general doesn’t exist without block generation.