When the company raises an additional round, the new investors build in provisions that allow the founders to take money off the table.
One example of this is IVP leading a round in Snapchat, and the two co-founders splitting $10M in exchange for some amount of personal stock.