Look, this Klingon planet was going to be wiped out by a solar flare. We needed a home and this one was perfect, so we prevented the flare. We then needed to wipe out the Klingons who were going to die anyway. It’s only logical as we needed a new home.