It appears that you are conflating a field gradient with a potential energy gradient.
Potential energy changes when moving parallel to any field force, regardless of whether that field is static or has some gradient.
Potential energy changes when moving parallel to any field force, regardless of whether that field is static or has some gradient.