The company was wanting to ensure that confidential data and company secrets weren't being leaked to outsiders. These people may use the information in ways that would hurt the business in the long-term, which is then used as a reason for terminating the employee.