It's common on buses in the US, too, but we are talking about passenger trains.
Czech trains on the other hand? They run actual restaurants with legit chefs on board [1][2].
[1] https://ostkoster.de/speisewagen-und-mitropa-in-ostdeutschla...
[2] https://www.tagesspiegel.de/gesellschaft/im-knodelexpress-ge...