If the phone had broken comms, how did you get the code onto the phone to run?

In ye olden days we used cables to sync all of our apps and data to our phones.

But why not move the data over that cable? Some kind of iOS thing that made that more complicated than pushing an app to the phone?