YOU SAID:
I went to the store to get groceries
INTO JAPANESE
私は食料品を買いに店に行きました
BACK INTO ENGLISH
I went to the store to buy groceries.
INTO JAPANESE
私は食料品を買うために店に行った。
BACK INTO ENGLISH
I went to the store to buy groceries.
That didn't even make that much sense in English.