The definite article is required because a particular service is named: We travelled … the 8.15 train.
Explicación
On fits a particular train named with a determiner, following the ordinary public-transport location pattern. By requires a bare vehicle noun, so by the train cannot express this construction.