Sure, so the set of instructions for intuitive composition might start with the scale, then go to measure and beat counting, and so on.
It’s the same way in your other post about the Golden Ratio - it’s not like the plants are following the formula, but the formula describes it. And yet the formula does exist in the world in this abstract way.
What I mean in particular about algorithms is the set of “rules” your brain gets fed when thinking about what is possible in music. When you hear a “wrong” note, you hear it as wrong because even if you’re not trained in music, you have these socially-indoctrinated algorithms for what is and is not appropriate in music, similar to how you can tell when someone uses a wrong word from the context of the conversation or the culture.