The way we compute the gradient seems unrelated to its interpretation as the direction of steepest ascent. Here you can see how the two relate.
License: CC BY-NC-SA by Khan Academy