When you're travelling on a train on the Elizabeth line take a look at the line diagrams posted around the inside of the train. In top right hand corner is a little message about "Wi-Fi data collection".
If you want to opt-out then you need to remember to turn off WiFi on your phone every time you travel.