When the stock award was granted, existing shareholders agreed to dilute their holdings by allowing the company to issue new shares to Cook. And when Cook sells this newly issued stock for cash, the money comes from new shareholders who want a slice of Apple (or existing shareholders buying more, thus paying cash for the shares they themselves gave to Cook).