I was extremely lucky that way growing up. Granny lived in the same yard on the ranch, and both my parents are good cooks, though mom was a picky eater. A huge garden plus homegrown beef, pork, poultry, eggs, and milk helped too.
I sometimes have friends families over for supper, and it's not uncommon for them to be worried their children won't want to eat what I'm preparing, only to be surprised when they finish the plate. Knowing how to cook is a great skill to have. I especially like it when kids appreciate it, they are very unfiltered ๐