1. Sometimes one invests in a company because it has a sound business model and you know that it will have long term value.
2. Other times you invest because the company is hot and rising and you plan to get your money out of the company before the party comes to an end (if you know a stock is going to rise, you might as well buy it and take profits as it goes up.) It can be very profitable for those in at the beginning, not so much for those left holding the relatively worthless bag.
The fact that the original founders are taking hundreds of millions of dollars out of groupon before the IPO reinforces many people's fears that Groupon is this second type of investment.