The lifetimes are much shorter in IT infra compared to the rail industry, yes, but the margins are astonishingly higher in IT as well.
While it usually takes decades to payback rail investments, it usually happens within few years in the IT industry.