Yes. That's the situation in 2026 in most of the world. But in the 19th (after the railway bubble - https://en.wikipedia.org/wiki/Railway_Mania) and early 20th century, railways were actually very profitable.