Another way to say "buying food is for preparing a meal" is "Preparing a meal requires buying food."