Sometimes youll need stuff like this. Rail maintenance cant always be done using overhead lines, since the machines will get destroyed by electric breakdown(?).
Some parts are not electrified yet, some cant be without major work being done to the track.
It is not ideal, but sometimes you cant do it otherwise, or you’d have to cut of some parts, imo its a useful way to bridge gaps.
Which happens with most engines. UE5 is an update version of UE4 and so on.