It is definitely super annoying that this data is not free, but the reality is that it does cost a bit of money to gather and aggregate.
Furthermore, though I frequently take the train, I do consider it unfair that general taxation revenues are used to fund the train services -- especially considering that if you look at the stats they are principally used by the wealthy. Charging for data goes some way to shifting the cost burden of rail back onto the rail travellers themselves, as the person ultimately paying for this data is the traveller that uses the train time app/website.