That's because they are growing at a large rate. When that growth stops the only option they will have is to pay dividends. The investors make money either way.
There's also buybacks, which has mostly been tech companies' weapon of choice when it comes to capital return.