The federation isn’t callous. It recognizes the gravity of wiping out entire civilizations, entire species. It does so only when it has a high degree of certainty that the species in question is apt to reject any social contract that involves managed resource consumption.