create a premined altcoin of 1 trillion coins. and get some sap to publicly buy a single coin for $5
and instantly you are hoarding a market valued at a market cap of $5trillion
It is a bad comparison though. Doing the same thing in stock market is so much harder and I'd say it is impossible to just create shares out of thin air for no reason and never let them enter the market for trading. Every share is accounted for and most importantly is backed by an actual company/business not vaporware (unless you count penny stocks).
Conversely in altcoin market you can create 1 trillion coins and only let a tiny portion of it like 1000 coins to enter circulation and be traded. Real example is ethereum with 72 million premine owned by Vitalik.