They are very profitable doing a small number of things. But an increase amount of actual transport needs has been moving to trucks (on federal subsided highways).
Given that those railroads have almost no competition from personal transit and that the US as a country is perfect for railroading, the overall market share the railroads have is astonishing small.
And the borders between the 4 monopolies causes lots of problems.
If a central authority took control and stopped with the attitude of cut everything out that isn't highly profitable, the US could leverage its rail road infrastructure far better. And would save money from fewer truck on the road (and the inherent green house effect).
The railroads profits alone could finance a nation wide rail electrification program.