Many companies, especially in tech, pay a large part of staff pay in shares instead of cash. Because no cash leaves, it's easy to treat it as free. Company presentations often do.
It isn't free. Someone pays, and that someone is the existing shareholder. If you skip this cost, you'll overrate how much a company really earns.