Is the rail pass worth it?

Looking for guidance from anyone but I’d love to here from a local or an ex-pat on what they perceive about the Japanese rail pass? Is it a tourist trap? Why can only tourists buy the rail pass?

by Get-Crafty5886