YOU SAID:
i went to the store to buy some food
INTO JAPANESE
私は食べ物を買いに店に行きました
BACK INTO ENGLISH
I went to the store to buy food
INTO JAPANESE
私は食べ物を買うために店に行きました
BACK INTO ENGLISH
I went to the store to buy food
That didn't even make that much sense in English.