To an extent, they weren't betting on the business, they were betting on the masses eating up the stock.
And they were at least initially right, and cashing out 2-4 days after the IPO certainly worked for and of them. Stock going down required some significant portion of them to take their winnings.
They were betting on the stupidity of the retail investor, not the fundamentals of the business.