Timz is right, of course. As a train begins to ascend a grade, the fact that the train itself has to be raised against gravity, considering a constant power output, causes the speed to drop.
Load current will increase as speed decreases, but the output remains the same so that a balance is reached at a new, lower speed.
Naturally, everyone is already hitting the "reply" button as this is a gross oversimplification. For example, on many EMD locomotives, a system called Performance Control was fitted that essentially had the effect of limiting locomotive output to 500 HP per axle in the lower speed range, and used a fixed proportion of power at a given speed in the range wherein power was being modulated.
What, you say? Well, taking the GP-35, which was a four-axle unit rated 2500 HP for traction as an example, we see that 500 HP per axle gives a total of 2000 HP. From a dead standing start, theoretically only 2000 HP would be available (although wheel slip and resulting power modulation on start might well reduce ACTUAL power below this) until you accelerated to a speed of about 12 MPH. At that point, the locomotive's excitation control equipment began to allow horsepower to increase, and it increased in step with speed until a speed of about 18 MPH was reached. At that speed, the full 2500 HP output was available, and naturally was at all speeds above this.
I only mention this because this is NOT as simple as the first explanation given, but begins to reveal the complexities of locomotive control as related specifically to your question. In the case of Performance Control equipped units, then, if a grade drags your speed down below about 18 MPH, you do NOT have a constant power available with which you reach that theoretical "balance speed," but rather less power than "full rated" so that this had to be taken into consideration. The system was originally fitted to the GP-30 and was described as "Drag Duty Performance Control" which was supposed to allow the GP-30 to operate effectively on heavy grades when in multiple with older, lower horsepower units. The idea was to control tractive effort of the units in the low speed range so that they would not, as they say, try to hog the load from the lower powered units -- which would result in constant wheel slip, and either stalling or breaking in two.
Hope that helps in its own (only seemingly) confusing way!
-Will Davis