I mean, it's possible it's a bug, but I find generally the explanation is one of;
Your GPS location is a bit off and is near the station but not in the station. It thinks you have to go all the way around to a crossing to get to the train station or something stupid, so it decides it's better...