Trains in Japan cease operations during nights, and last stops of trains move progressively towards core Tokyo to position vehicles for morning operations. This means you can't just stay at the table until stations close and catch the very last one, but people have varying time limits for train rides home.
So binge drinking train riding bar goers has to know the absolute latest time they must give up their mugs, which they're going to miss anyway, but will still try anyway, to be stuck mid-way to queue up for a taxi. Or they can be smarter and get stuck at Shinjuku, queueing for a taxi. The smartest ones hit 24/7 places like McD, karaoke, or internet cafe. Or get couples of cans at 7-11 and raid a friend's apartment. None of them are smart, they're all drunk.
I've never taken a taxi in that kind of situation, but I imagine the experience wouldn't be great. Waymo at midnight is certainly going to be a game changer to them.