Take another look at the sentence:
When Minori left Japan to study in the United States is a subordinate clause. A subordinate clause cannot stand alone as a complete sentence. She thought is a main clause because it has both a subject, she, and a verb, thought. When a subordinate clause introduces a main clause, you need to connect the two with a comma.