The primary goal of carcinogenicity testing is to ensure public health and safety. By identifying carcinogens, regulatory agencies can set exposure limits and guidelines to minimize cancer risks. This is crucial for drug development, industrial chemicals, and food additives.