“Public transit” means transit operated by or on behalf of municipalities for getting around cities or metro regions. Inter-city rail is generally not considered “public transit.”
It does not mean “available to the public.” You can also buy a plane ticket at Haneda and be in Kansai in less than 90 minutes. Japan Rail isn’t any more “public transit” than ANA.