In Poland, if you buy your ticket for an Intercity train online, the conductor will ask for your ID to ensure the names match. The state, or perhaps just the operator, seems to be concerned about who is paying and traveling in this case. One can still buy tickets with cash, though.