What Ransom was doing to the aliens was horrible. He was imprisoning and harvesting them for energy resulting in their deaths. It would be akin to someone kidnapping children and draining their blood until they die. Such a person would face a very harsh penalty in our justice system. Since they were so far away from the Alpha Quadrant and since she was the only other Starfleet captain around, she felt like it was her job to carry out justice.