To detect leaks. Pressure testing identifies cans whose seal is not sound, so that leaks and integrity failures are found in production rather than after the cans have reached the customer.