编辑下面这段文字，使得它更通顺易懂。
"John went to the store to buy some eggs. When he arrived at the store, he realized he had forgotten his wallet at home."
John went to the store to buy eggs, but when he got there, he realized that he had left his wallet at home.