That's 40% of "ton-miles" - trains disproportionately move heavy, cheap goods (i.e. aggregate, coal), which makes that number potentially misleading. The percentage of freight moved by rail by "value" is closer to 15% (trucking is ~65%).
https://www.bts.gov/newsroom/2017-north-american-freight-num...
https://www.aar.org/facts-figures#:~:text=Freight%20rail%20a....