There are probably software developers (and chefs) driven entirely by recognition, and maybe they’ll keep their secrets secret.
But most people just don’t care. You want my amazing Mac and Cheese recipe (lifted and adapted from others, of course)? Fine.
I do not care if my name is all over it, I do not care if this is the one-in-a-billion case where you’re going to launch a restaurant chain and get rich on the back of my recipe. I am under no illusions that getting a restaurant chain off the ground and profitable is somehow easy, or that my recipe is the secret, irreplaceable piece.