You do not have to eat ekiben in the train.

Actually, it is quite common that local commenters to buy ekiben at a station on a way home.
Go through a station on a way home and it is convenient, do not have to detour to somewhere to pick up dinner. I done it more than few times, called and said I will pick up few ekiben on a way home and let's make that a dinner.