> In the stock market, the money you invest into a company is used to pay for workers, equipment, etc that generates more dividends.
Only if you invest in the IPO or later stock offerings directly from a company. Otherwise you're just buying in the secondary market and no part of the price you pay goes to the company.