Think about it again. A lot of data shows that if you invest the same money in buying bitcoin, you can earn more than mining it
that's will be a gambling, however mining also kind gambling, just slow than invest buying bitcoin.
A miner at any time, will usually cost you more in BTC than the BTC it will make mining.
At the moment that is definitely true, miners are being sold for WAY more $->BTC than the miner will ever mine.
Add on top of that the cost of running it (time and electricity)
Also, the BTC will arrive slowly over the following year or more and thus if there is a peak at any point where you want to sell the generated BTC, it will of course not be the total BTC.
If instead you just buy BTC, you will get more BTC, you will get it up front, and also be able to decide when to sell that BTC at a profit.