Image attached, from Schubert Impromptu op90 no2. Relevant fingerings are in red boxes. I don't understand why the fingering has changed when the bar is the same and the notes before and after are essentially the same (I assume?).
They are different due to the different chords approaching these identical bars. Fingerings are suggestions made by the editors who tried to help ensure that the chords progresses smoothly.
Much as ornaments, e.g a trill; you need to identify the approaching and subsequent note before deciding the which notes you need to start and end with.