Training has a lot to do with it.
Dogs like to learn and please, it's their nature. Like Mosha in the kitchen for instance. The reason she stays out of the way is because when she was young I would kick her (lightly, not enough to hurt, but enough she knew she was in the way). She quickly realized to stay out of the way. Ever since she stands back and waits for her treats.
This is what I usually see while cooking 😂
