The best investments require healthy businesses, which require supplier production and consumer spending, which are uses of money that compete with investments. If everyone who can afford a Tesla roadster would prefer to buy Tesla stock, then the investment never pays off, because Tesla can't actually sell enough roadsters. Eventually, someone has to buy something. Buying a piece of the company that makes a thing is not the sake as buying the thing it makes. One is actually beneficial economic activity, and the other is just moving money from one pocket to another in the same pair of pants.
All those loans given out for education and housing are not spending. They are just new ways to launch money out on outward trajectories such that it will inevitably return.
Once you are rich enough that you can't conceivably spend all your money via normal living expenses, you have a choice: accumulate even more money that can't be spent, or spend it on abnormal expenses. You can use your money to get more money, or you can use it to buy things that no one else can. You can buy paper from Fannie Mae and Sallie Mae, or you can build a better electric car. You can shuffle paper, or you can eradicate malaria. You can shuffle paper, or you can give a condom to every person on Earth that does not want to get HIV today. You can shuffle paper, or you can buy the swankiest, shiniest luxury yacht ever made. You can shuffle paper, or you can overthrow the government that murdered your grandparents. You can shuffle paper, or you can make sure that your local zoo can afford a new habitat for some threatened animal to whom you feel inexplicably connected.
We get bubbles when the people with money to spare only want to invest in the things that other people are spending their money on. Those people should not be investing. They should be making things to sell, or buying them, rather than trying to make the people who are doing those things indebted to them somehow.