Its easy. How do we make it so ever btc is unique and every transaction is secured and against multi spending glitches? solving unique math problems. These algorithms need computing power = these people providing the computing power to keep these operations of confirmation and btc creation = miners.