In the first case you have to vectorially add his swimming velocity and the velocity of the current to make a resultant directly perpendicular to the flow of the river.
In the second case the velocities of the swimmer and the current are
independant of one another.