This phrase is used here to mark an important event in the story.
This refers to bread. It does not refer to food in general.
"gave thanks for it" or "thanked God for it"