If a company sells 100,000 shares at a dollar each, the company is now worth $100,000 more because they now have another $100,000 on their balance sheet. No value is lost in this process.
> This is why a stock will tank when a company talks about diluting their existing shares by creating new shares out of thin air.
Companies can't just declare that more shares exist and dilute away shareholders like you said. They either issue them as stock based compensation, which is an expense, or they sell the shares to buyers, which means money goes toward their bottom line.