One of the reasons Mainframes continue to be used is depreciation. I know a few companies who love their mainframes because they are fully paid for and from a budget perspective they are seen as “free”.
This can be very attractive compared to the never ending OpEx for running cloud computing.