What makes writing writing is what it is used for. Writing is used for communicating between humans. It only works the way it does because of what is on the other end of it -- another person.
And that is why software must be different. Software is different from writing because its (ultimate, essential) purpose is different (and particular): it is not communication, it is (engineering) design. It works the way it does because it is for constructing an artifact.
When you look at software, what you see is not language, it is a machine.
To represent a machine requires a particular kind of structure. A machine has a particular form, and a description or notation that captures it must reflect that form. That form seems to be a recursive, hierarchical regularity -- a nestable scaffolding. And a machine has a core of objective logical rigidity.
Writing lacks this hierarchical logical structure. It communicates illogically, by allusion, impression, etc. Its use meant it never evolved any other way.
Instead, software must have this logical structure. The term 'programming language' is perhaps a source of the confusion, now unfortunately established. Software does not communicate to a machine, it embodies the machine.