The company should be a party to the share sale agreement because the company usually has certain obligations as well. For example, the company may have an obligation to pass certain resolutions prior to completion, or issue new share certificates after completion. Having the company as a party to the share sale agreement means that the company is obliged to perform such actions.