But that’s how capitalism works. You invest your money into something instead of using it on yourself.
And in exchange for the risk taking, because each investment is a huge risk, you become (in case of stocks) a shareholder. And a as a shareholder and risk taker, you get compensated for your risk taking with dividends.
Why invest your own cash into something and take a risk without getting something in exchange? That would be considered stupid.
I invested into Wirecard back then and guess where the money went… Investments are bound to risk. And taking a risk must be rewarded.