Bernie Sanders justifies his millions this way: he worked for it by writing a book. He also says that if you write a book, you could be a millionaire too. It's just that easy!
Money and BanksMoney and Banking
History of the Austrian School of Economics
Since we don't know the future, all investment is a type of speculation, and this doesn't mean banks are behaving nefariously when investing other people's money.