I believe the Japanese private rail companies also own the lines where their traffic is. This would explain a lot. There are other countries (including my native one) where the trains are run by one company and the lines are owned by another. This does.not.work. For what seems like obvious reasons. There's no economic gain for the owner of the infrastructure to spend money, quite the opposite in fact.
Many of these lines were built by the public, then privatized.
In every EU country the infrastructure company (companies) is separate from companies that operate trains, with some usually small exceptions.