给定两个英文句子，合并为一个具有连贯性的句子。

句子1: I went to the supermarket to buy some apples.

句子2: When I got there, I realized that I forgot my wallet at home.
When I got to the supermarket to buy some apples, I realized that I forgot my wallet at home.