But people do need to travel with their pets sometimes; consider moving to a new house far enough away such that it requires air travel. I would not consent to putting my cats in the cargo hold; I've heard enough horror stories about the conditions they experience (not to mention incidence of death, injury, or loss) there to allow that. I read that there used to be a "pet airline" in the US, but they had very limited routes and destinations, and haven't flown in many years at this point.
At the end of the day you have to sometimes make sacrifices for your choices. This is one of those times.
My personal preference would be zero children, zero dogs, only well behaved cats, but I realize that's a niche flight preference, but on a route with hundreds of flights a week, one flight a week (or even one a month) should be easy to fill.
It would suck if public transport became a no-go or much less pleasant option for me and many others because our comfort is prioritised as less important than a dogs.
People shouldn't be on public transportation primarily because enough people have shown they are unable to respect other people.
I would want everyone bringing a dog on a train to be in that same level of control, and judging by the people and dogs I see out walking that’s an unreasonable wish.
However, from what I saw in America during the pandemic and before, the vast majority of American dogs would not.
That said, the bigger problems I see here are 1) how to deal with the bathroom problems (train trips last hours, and dogs don't hold it in very well), and 2) how to deal with peoples' allergies, and 3) how to deal with people just not wanting to ride near other peoples' animals. I think it's an insurmountable problem really, unless there's SO much demand that they can dedicate a whole train car to being pet-friendly (not likely). We already have ways of moving pets around: taxis and cars. Inside a city, just use a taxi. If you need to travel between cities, just rent a car. Yes, it's a lot of money, but if you can't afford that, then you can't afford a dog. Or just leave the dog at home. (If it's a cat, the cat doesn't want to take a trip with you anywhere.)
(edit) Finally, I just did a little research, and this isn't really a problem at all. You can already bring dogs and cats on trains here, both the intercity Shinkansen and the local trains. The catch is that it needs to be a small dog (or cat), and inside a carrier, weighing a total of 10kg or less. It looks like there's a small fee (less than $5) for the Shinkansen. So I don't see why any of this is necessary; it's a solved problem.
If they have a large dog, they should already own a car. Apartments in Tokyo do NOT allow large dogs, and anyone living outside the city should already have a car anyway. If you can't afford a car, you can't afford a large dog.
I live in Tokyo; there's almost no large dogs here. Having a large dog is a luxury.