There is experimentation in cooking, but not usually in restaurants while serving actual customers. That is the time for just making the recipes you practiced.
There is very little reason to write out (say) the same algorithm a hundred times because you have a hundred different users who need it, but a cook can't just ctrl-C ctrl-V a dish.