When a company wants to raise money from the public at large for the first time, it can do so through an IPO. This is referred to as the primary market. After the IPO, the shares are listed on the stock exchange which is referred to as the secondary market. Hence the people who owned shares of the company before the IPO now have the liquidity to sell these on the stock exchange.