So here's the thing, the difference between a pyramid scheme and a business is that in the pyramid scheme, all the wealth gets generated by selling shares to other 'investors', while in a business, all the wealth is generated by selling to customers.
Which is why one's illegal, while the other is publicly traded on the stock market.