These are very different skills.
When cooking at home, the goal is simple: make good food.
Being a good cook is only 1 part of being good at a cooking job. Sort of like how making good songs is only 1 aspect of being a musician: you still need to market, network, have a public persona, etc. You can't just release good songs and ignore the other aspects.
Other aspects include:
Being clean, organized, prepared
Time efficiency and multitasking
Adapting to changes on the fly
People skills
Work ethic/ and other general things that apply to any job
Cooking isn't just about the recipe. You can find good recipes from restaurant jobs, but you can also find them free online. It's more about the technique and attention to detail.
I've learned a bit about cooking from my jobs. But you can also learn from books, youtube and trial and error in your own experience.