During my various travels around the UK, I’ve seen a small number of well behaved dogs on public transport, none of which has ever caused any kind of problem or disturbed anyone. There are rules around dog behaviour and the small number of dog owners who do use it are generally compliant. If you don’t like dogs, don’t sit near one.
In contrast, I’ve seen and heard many people drinking alcohol who’ve caused a great deal of trouble by behaving badly, creating unpleasant and disruptive amounts of noise and generally being incredibly antisocial.
Emetophobes find drunk people terrifying. Some people have phobias of buttons and feathers. Should those also be banned? If you have a phobia or fear and still choose to use public transport, then it’s up to you to deal with whatever you may find there.
Ditto allergies. If you know you have them then, difficult as it is, it’s something you have to live with and banning dogs won’t stop you coming in contact with their dander.
I recently travelled a very long way with my dog on public transport because the only other choice was to send him alone on a plane, to be met at the other end by someone he’d never met. He’d have been terrified. On the way, over several days and countries, he made dozens of people smile and spent quite a while entertaining a baby.
So if anything, drinking on trains should be disallowed. It causes way more unpleasantness for other passengers than dogs.