If the market is not efficient, the company's shares may be underpriced.
The company can either retire (cancel) the shares (however, retired shares are not listed as treasury stock on the company's financial statements) or hold the shares for later resale.