Money only goes to the company to get reinvested when the company sells shares, so at IPO time, when an insider sells, when more shares are issued, etc...
Otherwise, it's one asset holder selling to another asset holder, usually at ever increasing prices. So yes, a lot of money is simply sitting in the stock market.
Now, some does come back in the form of share buybacks and dividends. That being said, the average dividend yield is significantly less than the long-run average (it's less than 2 percent right now, long term average is above 3%).
Question really comes to what does the seller do with that money? Buy some other stock? Buy some other asset. What fraction they actually spend to buy goods and services?