It wasn't obvious TCP/IP would win for a surprisingly long time[0]. IIUC it was MPLS that addressed the latency issues at the backbone layer for TCP/IP. That, at least IIUC, obviated the major latency advantage ATM had over pure IP backbones.
[0] https://www.cs.columbia.edu/sip/articles/tdc0598cover1_side1...