If this is shocking wait until you find out that a lot of banks still use IBM IMS. That's IBM's first database that they built for the government to track rocket parts for the Apollo moon mission.
IMS has been continuously developed and evolved to do one job well.
most ATMs used to be backed by a mainframe.
I saw some newer ATMs using Windows Embedded so I guess they changed at some point.