Another way to say "a grocery store is used for buying food" is "Food can be purchased from a grocery store."