It's probably cheaper these days to do steam trains with relatively convincing CGI.
Then there's no excuse for shoddy research.
However a film maker might still deliberately decide that a CGI'd train from the wrong period
looks better on screen...
Like intentionally incorrect music, it's movie magic...