Aliens

The aliens say this was all to test Gem, to see if her people are worthy of saving, and so that she can learn to be as cool as Kirk, Bones and Spock