This is smart. By offering free WiFi in 400 train stations, they're undoubtly getting the Right of Way allowances to run fiber along the majority of the rail system
This will allow them to spread a Google-owned backbone across the country that they can use as the start of rolling out Google fiber in different cities.
This isn't about free Wifi. It's about free Right of Way for their infrastructure.