Another way to say "a grocery store is used for buying food" is "Buying food can be done at a grocery store."