Investing with the house's money
When you bet on your winnings at the casino, pro gamblers call it 'betting using the house's money.'
It's a tempting move that often cause you to lose more than you gained (which is why most pros avoid it).
Doing this in the real world, on the other hand, happens to be a great financial strategy.
If you can only invest on profit, you can maintain a stable cushion against your losses, while still being able to invest in avenues that give you more leverage or capital over time.
The most obvious example of this is buying (a cheaper home you can afford), renovating it, and selling it for far more than it cost you, using the earnings to repeat the process on a larger scale. Do it enough times and you can become the next Fixer Upper (or at very least, own the home you want).
This strategy applies to other decisions as well, such as how you go about acquiring an education. There are abundance of free and cheap resources available to the aspiring learner...what would happen if you defaulted to using them before you considered taking out a school loan? Or what if you started a (small) side-hustle to make a substantial dent in those loans, before you enrolled?
I'm not necessarily advocating that the best way to start a business or get an education is to wait until you can fully afford their associated expenses, but I do think that defaulting to borrowing money (and investing in anything with it) probably shouldn't be your first choice if you truly want these assets to pay for themselves.
If you're going to be so saddled in debt that you can't afford to enjoy yourself, why invest the thing you think you want to begin with? It's better to start small and work your way up, than to go all in and risk losing everything.