Yes, what you ask is good question, and because everybody always says the magnetising inductance of a transformer is "L(primary) with L(secondary) open circuit".
...That is not strictly true.......the transformer does not "know" which of its coils is primary and which is secondary....it knows only the flux in its core......and it has no idea whether that flux came from current in the primary or secondary current flow.
To make it worse, the concept of flux, inductance etc are mere "parameters" invented by humans in their efforts to control physical things.......when you drill down into the true meaning, you actually find that the entire physical model that we have built up, is without any sense at all. (see things like "string theory", etc etc)...........but who cares....if you can use your "model" to design something that works as you want....then do you care that the method you used to get there was inherently incorrect. I am sure you already know this.