great question.... if a stream or river is moving slowly and you swim against the flow, you ARE swimming up-hill... maybe not a large elevation, but you are going up hill...
My local swimming pool is built on a hill, most people swim the downhill leg but the council has put wide steps on the lower end so people can get out easily and walk up the hill then swim down again.