This is a whole wall of post hoc ergo propter hoc.
You can’t state with any certainty that the ATM’s increased efficiency had anything to do with the expansion of bank branches. That could have simply been due to the strong population and economic growth. It’s quite possible (and I’d assume it to be true) that if the ATM had never been invented, there would have been far more bank tellers in 2005 than there were.
You also can’t assume the iPhone had that much to do with it. With the exception of depositing checks, there was nothing I couldn’t do on my computer in 2005 that I could on my phone in 2025. And you could always deposit a check at an ATM. It wasn’t like in 2006 we were all like “well I can only check my bank balance on my laptop so I’m going to drive there instead.”
It seems quite likely that other trends caused all of this.
“Correlation doesn't imply causation, but it does waggle its eyebrows suggestively and gesture furtively while mouthing 'look over there'.”
What exactly is your competing theory?